@hb-hellotech/hb-ui 1.3.13-beta.9 → 1.3.14
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/func_comp/hb_ui_config/src/hbUiConfig.vue.d.ts.map +1 -1
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +990 -971
- package/dist/hb_component_lib.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/hb_component_lib.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import './hb_component_lib.css';
|
|
2
|
-
import { defineComponent as Q, inject as
|
|
3
|
-
import
|
|
4
|
-
import { Modal as je, Button as We, message as Se, Tooltip as
|
|
2
|
+
import { defineComponent as Q, inject as me, computed as P, reactive as Ae, ref as O, watch as oe, onMounted as pe, createElementBlock as T, openBlock as i, normalizeClass as Y, unref as g, createVNode as S, withCtx as r, createElementVNode as c, toDisplayString as L, createTextVNode as A, createBlock as E, createCommentVNode as z, Fragment as q, renderList as se, resolveComponent as N, Transition as Dt, withDirectives as ue, mergeProps as le, createSlots as Be, renderSlot as j, vShow as At, nextTick as Ce, onUnmounted as Te, useTemplateRef as Bt, provide as Lt, normalizeStyle as de, mergeModels as Ve, useModel as Ct, withModifiers as Fe, resolveDirective as kt, useAttrs as Ot, watchEffect as St, shallowRef as zt, resolveDynamicComponent as Tt, toRaw as Et, onBeforeUnmount as Ge, createApp as Pt } from "vue";
|
|
3
|
+
import He from "vuedraggable";
|
|
4
|
+
import { Modal as je, Button as We, message as Se, Tooltip as $e, Switch as et, Radio as tt, RadioGroup as lt, InputNumber as ot, DatePicker as at, Checkbox as Ie, CheckboxGroup as nt, Select as Ye, Input as it, Col as Rt, Row as Nt, FormItem as st, Form as rt, SelectOption as qe, Popconfirm as Ne, MenuItem as ct, Menu as dt, Dropdown as ut, Popover as Ut, BackTop as wt, Spin as Vt } from "ant-design-vue";
|
|
5
5
|
import { useRoute as Qe } from "vue-router";
|
|
6
6
|
import { useI18n as fe } from "vue-i18n";
|
|
7
7
|
import Le from "lodash";
|
|
8
|
-
import { CloseOutlined as jt, QuestionCircleOutlined as Wt, SearchOutlined as
|
|
8
|
+
import { CloseOutlined as jt, QuestionCircleOutlined as Wt, SearchOutlined as Me, UpCircleOutlined as Yt, DownCircleOutlined as qt, UnorderedListOutlined as Kt, DownOutlined as Ke, PlusCircleOutlined as Jt, ToTopOutlined as xt } from "@ant-design/icons-vue";
|
|
9
9
|
import { useFullscreen as Ft, useDebounceFn as Gt, useElementBounding as Qt, useScroll as Zt, useDraggable as Xt, isClient as el } from "@vueuse/core";
|
|
10
10
|
import Oe from "dayjs";
|
|
11
11
|
const tl = "hb-", Ze = (e = "") => {
|
|
12
12
|
const t = `${tl}${e}`;
|
|
13
13
|
return ll(t);
|
|
14
|
-
}, ye = (e, t, l,
|
|
14
|
+
}, ye = (e, t, l, n) => (t && (e += `-${t}`), l && (e += `__${l}`), n && (e += `--${n}`), e), ll = (e) => ({
|
|
15
15
|
// hb-button
|
|
16
16
|
b: (t) => t ? ye(e, t, "", "") : ye(e, "", "", ""),
|
|
17
17
|
// hb-button__header
|
|
@@ -23,7 +23,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
23
23
|
// hb-button__header--primary
|
|
24
24
|
em: (t, l) => ye(e, "", t, l),
|
|
25
25
|
// hb-button__header--primary
|
|
26
|
-
bem: (t, l,
|
|
26
|
+
bem: (t, l, n) => ye(e, t, l, n),
|
|
27
27
|
// is-disabled
|
|
28
28
|
is: (t, l) => l ? `is-${t}` : ""
|
|
29
29
|
}), ol = ["onMouseenter", "onMouseleave"], al = ["onClick"], nl = /* @__PURE__ */ Q({
|
|
@@ -39,22 +39,22 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["confirm"],
|
|
41
41
|
setup(e, { expose: t, emit: l }) {
|
|
42
|
-
const
|
|
42
|
+
const n = me("globalCompConfig", {}), u = fe().t, b = fe().messages.value.en_US, d = fe().messages.value.ja_JP, f = fe().messages.value.zh_CN, o = e, a = P(() => o.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = P(() => o.title || u("hbLibComp.hbFormItemFilterModal.title")), _ = l, p = Ze("sfcm"), $ = Qe(), I = Ae({
|
|
43
43
|
lan: window.localStorage.getItem("lan")
|
|
44
|
-
}), V = O(!1),
|
|
45
|
-
let
|
|
46
|
-
const
|
|
47
|
-
...
|
|
48
|
-
label: H(
|
|
49
|
-
key:
|
|
50
|
-
isFixed:
|
|
51
|
-
isLinked:
|
|
52
|
-
labelLanguage:
|
|
53
|
-
}),
|
|
54
|
-
const W =
|
|
44
|
+
}), V = O(!1), w = O(600);
|
|
45
|
+
let v = [];
|
|
46
|
+
const k = O([]), M = O([]), F = P(() => k.value.every((D) => D.isLinked || D.isFixed)), C = (D) => ({
|
|
47
|
+
...D,
|
|
48
|
+
label: H(D) || `${x(D) || ""} (${u("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,
|
|
49
|
+
key: D.key,
|
|
50
|
+
isFixed: D?.isFixed || !1,
|
|
51
|
+
isLinked: D?.isLinked || !1,
|
|
52
|
+
labelLanguage: D?.labelLanguage || void 0
|
|
53
|
+
}), y = (D) => {
|
|
54
|
+
const W = D.draggedContext.element, U = D.relatedContext.index;
|
|
55
55
|
if (W.isLinked || W.isFixed)
|
|
56
56
|
return !1;
|
|
57
|
-
const te =
|
|
57
|
+
const te = k.value.map((ne, be) => ({ item: ne, index: be })).filter(({ item: ne }) => ne.isLinked).map(({ index: ne }) => ne);
|
|
58
58
|
if (te.length === 0)
|
|
59
59
|
return !0;
|
|
60
60
|
for (let ne = 0; ne < te.length - 1; ne++) {
|
|
@@ -64,41 +64,41 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
64
64
|
}
|
|
65
65
|
return !0;
|
|
66
66
|
}, s = P(() => h() + "_" + o.saveKey), h = () => {
|
|
67
|
-
const
|
|
67
|
+
const D = localStorage.getItem("pro__Login_Userinfo");
|
|
68
68
|
let W = "anonymous";
|
|
69
|
-
if (
|
|
69
|
+
if (D)
|
|
70
70
|
try {
|
|
71
|
-
W = JSON.parse(
|
|
71
|
+
W = JSON.parse(D).value.jobNumber || "anonymous";
|
|
72
72
|
} catch (te) {
|
|
73
73
|
console.warn("解析用户信息失败:", te);
|
|
74
74
|
}
|
|
75
75
|
let U = $?.path;
|
|
76
76
|
return `searchFormConfig_${W}_${U}`;
|
|
77
|
-
}, H = (
|
|
78
|
-
ja_JP: () => Le.get(d,
|
|
79
|
-
en_US: () => Le.get(
|
|
80
|
-
zh_CN: () => Le.get(
|
|
81
|
-
})[
|
|
82
|
-
ja_JP: () => Le.get(d,
|
|
83
|
-
en_US: () => Le.get(
|
|
84
|
-
zh_CN: () => Le.get(
|
|
85
|
-
})[
|
|
77
|
+
}, H = (D) => ({
|
|
78
|
+
ja_JP: () => Le.get(d, D.labelLanguage || ""),
|
|
79
|
+
en_US: () => Le.get(b, D.labelLanguage || ""),
|
|
80
|
+
zh_CN: () => Le.get(f, D.labelLanguage || "")
|
|
81
|
+
})[I.lan]?.() || D.label, x = (D) => ({
|
|
82
|
+
ja_JP: () => Le.get(d, D.subLabelLanguage || ""),
|
|
83
|
+
en_US: () => Le.get(b, D.subLabelLanguage || ""),
|
|
84
|
+
zh_CN: () => Le.get(f, D.subLabelLanguage || "")
|
|
85
|
+
})[I.lan]?.() || D.subLabel, R = (D) => {
|
|
86
86
|
try {
|
|
87
87
|
const W = localStorage.getItem(s.value);
|
|
88
88
|
if (W) {
|
|
89
89
|
const U = JSON.parse(W);
|
|
90
90
|
if (U.originalList && Array.isArray(U.originalList)) {
|
|
91
|
-
|
|
92
|
-
const te =
|
|
91
|
+
v = JSON.parse(JSON.stringify(U.originalList));
|
|
92
|
+
const te = v.filter((Z) => Z?.isFixed), ne = v.filter((Z) => Z?.isLinked), be = U.showList.filter((Z) => !Z.isFixed && !Z.isLinked), ge = a.value && a.value > 0 ? Math.max(0, a.value - te.length - ne.length) : be.length, we = te.map((Z) => ({
|
|
93
93
|
...C(Z)
|
|
94
94
|
})), Ee = ne.map((Z) => ({
|
|
95
95
|
...C(Z)
|
|
96
96
|
})), Pe = be.slice(0, ge).map((Z) => ({
|
|
97
97
|
...C(Z)
|
|
98
98
|
}));
|
|
99
|
-
|
|
100
|
-
const Re =
|
|
101
|
-
return
|
|
99
|
+
k.value = [...we, ...Ee, ...Pe];
|
|
100
|
+
const Re = k.value.map((Z) => Z.key), ie = v.map((Z) => Z.key).filter((Z) => !Re.includes(Z));
|
|
101
|
+
return M.value = v.filter((Z) => ie.includes(Z.key)).map((Z) => ({
|
|
102
102
|
...C(Z),
|
|
103
103
|
active: !1
|
|
104
104
|
})), !0;
|
|
@@ -110,9 +110,9 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
110
110
|
return !1;
|
|
111
111
|
}, ee = () => {
|
|
112
112
|
try {
|
|
113
|
-
const
|
|
114
|
-
originalList:
|
|
115
|
-
showList:
|
|
113
|
+
const D = {
|
|
114
|
+
originalList: v,
|
|
115
|
+
showList: k.value.map((W) => ({
|
|
116
116
|
...W,
|
|
117
117
|
key: W.key,
|
|
118
118
|
label: W.label,
|
|
@@ -121,128 +121,128 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
121
121
|
labelLanguage: W?.labelLanguage || void 0
|
|
122
122
|
}))
|
|
123
123
|
};
|
|
124
|
-
localStorage.setItem(s.value, JSON.stringify(
|
|
125
|
-
} catch (
|
|
126
|
-
console.warn("保存搜索配置失败:",
|
|
124
|
+
localStorage.setItem(s.value, JSON.stringify(D));
|
|
125
|
+
} catch (D) {
|
|
126
|
+
console.warn("保存搜索配置失败:", D);
|
|
127
127
|
}
|
|
128
128
|
}, J = P(() => {
|
|
129
|
-
const
|
|
130
|
-
return
|
|
129
|
+
const D = k.value.filter((U) => !U.isFixed && !U.isLinked).length, W = k.value.filter((U) => U.isFixed || U.isLinked).length;
|
|
130
|
+
return D >= a.value - W;
|
|
131
131
|
});
|
|
132
132
|
oe(
|
|
133
133
|
() => o.list,
|
|
134
|
-
(
|
|
135
|
-
let W = JSON.stringify(
|
|
134
|
+
(D) => {
|
|
135
|
+
let W = JSON.stringify(k.value) !== JSON.stringify(D);
|
|
136
136
|
if (!W)
|
|
137
137
|
return;
|
|
138
138
|
const U = localStorage.getItem(s.value), te = JSON.parse(U || "{}");
|
|
139
139
|
if (te && te?.originalList && Array.isArray(te.originalList))
|
|
140
|
-
R(), _("confirm",
|
|
140
|
+
R(), _("confirm", k.value);
|
|
141
141
|
else if (W) {
|
|
142
|
-
|
|
143
|
-
const ne =
|
|
144
|
-
|
|
142
|
+
v = JSON.parse(JSON.stringify(D));
|
|
143
|
+
const ne = D.filter((ie) => ie?.isFixed), be = D.filter((ie) => ie?.isLinked), ge = D.filter((ie) => !ie?.isFixed && !ie?.isLinked), we = a.value && a.value > 0 ? Math.max(0, a.value - ne.length - be.length) : ge.length, Ee = ne.map((ie) => C(ie)), Pe = be.map((ie) => C(ie)), Re = ge.slice(0, we).map((ie) => C(ie));
|
|
144
|
+
k.value = [...Ee, ...Pe, ...Re];
|
|
145
145
|
const Xe = ge.slice(we).map((ie) => ({
|
|
146
146
|
...C(ie),
|
|
147
147
|
active: !1
|
|
148
148
|
}));
|
|
149
|
-
|
|
149
|
+
M.value = Xe, _("confirm", k.value);
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
{ immediate: !0 }
|
|
153
153
|
);
|
|
154
|
-
const K = (
|
|
155
|
-
const W =
|
|
156
|
-
W !== -1 && (
|
|
157
|
-
}, re = (
|
|
154
|
+
const K = (D) => {
|
|
155
|
+
const W = k.value.findIndex((U) => U.key === D.key);
|
|
156
|
+
W !== -1 && (k.value.splice(W, 1), M.value.push({ ...D, active: !1 }));
|
|
157
|
+
}, re = (D) => {
|
|
158
158
|
if (J.value) {
|
|
159
|
-
Se.warning(`当前已经超过${
|
|
159
|
+
Se.warning(`当前已经超过${u(a.value)}个可选数量,请先删除已显示条件`);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
const W =
|
|
162
|
+
const W = M.value.findIndex((U) => U.key === D.key);
|
|
163
163
|
if (W !== -1) {
|
|
164
|
-
const [U] =
|
|
165
|
-
|
|
164
|
+
const [U] = M.value.splice(W, 1);
|
|
165
|
+
k.value.push({ ...U, active: !1 });
|
|
166
166
|
}
|
|
167
167
|
}, ce = () => {
|
|
168
168
|
V.value = !1;
|
|
169
169
|
}, ve = () => {
|
|
170
170
|
V.value = !0;
|
|
171
171
|
}, B = () => {
|
|
172
|
-
ee(), _("confirm",
|
|
173
|
-
}, ze = (
|
|
174
|
-
const W =
|
|
175
|
-
W !== -1 && (
|
|
176
|
-
}, G = (
|
|
177
|
-
const W =
|
|
178
|
-
W !== -1 && (
|
|
172
|
+
ee(), _("confirm", k.value), ce();
|
|
173
|
+
}, ze = (D) => {
|
|
174
|
+
const W = M.value.findIndex((U) => U.key === D.key);
|
|
175
|
+
W !== -1 && (M.value[W].active = !0);
|
|
176
|
+
}, G = (D) => {
|
|
177
|
+
const W = M.value.findIndex((U) => U.key === D.key);
|
|
178
|
+
W !== -1 && (M.value[W].active = !1);
|
|
179
179
|
};
|
|
180
180
|
return t({
|
|
181
181
|
toOpenModal: ve
|
|
182
|
-
}),
|
|
183
|
-
}), (
|
|
184
|
-
class: Y(
|
|
182
|
+
}), pe(() => {
|
|
183
|
+
}), (D, W) => (i(), T("div", {
|
|
184
|
+
class: Y(g(p).b())
|
|
185
185
|
}, [
|
|
186
|
-
|
|
186
|
+
S(g(je), {
|
|
187
187
|
visible: V.value,
|
|
188
188
|
"onUpdate:visible": W[1] || (W[1] = (U) => V.value = U),
|
|
189
|
-
width:
|
|
189
|
+
width: w.value,
|
|
190
190
|
onCancel: ce,
|
|
191
191
|
onOk: B
|
|
192
192
|
}, {
|
|
193
193
|
title: r(() => [
|
|
194
194
|
c("div", {
|
|
195
|
-
class: Y(
|
|
195
|
+
class: Y(g(p).e("title"))
|
|
196
196
|
}, L(m.value), 3)
|
|
197
197
|
]),
|
|
198
198
|
footer: r(() => [
|
|
199
|
-
|
|
199
|
+
S(g(We), { onClick: ce }, {
|
|
200
200
|
default: r(() => [
|
|
201
|
-
A(L(
|
|
201
|
+
A(L(D.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
}),
|
|
205
|
-
|
|
205
|
+
S(g(We), {
|
|
206
206
|
type: "primary",
|
|
207
207
|
onClick: B
|
|
208
208
|
}, {
|
|
209
209
|
default: r(() => [
|
|
210
|
-
A(L(
|
|
210
|
+
A(L(D.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
})
|
|
214
214
|
]),
|
|
215
215
|
default: r(() => [
|
|
216
216
|
c("section", {
|
|
217
|
-
class: Y(
|
|
217
|
+
class: Y(g(p).e("show"))
|
|
218
218
|
}, [
|
|
219
219
|
c("div", {
|
|
220
|
-
class: Y(
|
|
220
|
+
class: Y(g(p).e("show__title"))
|
|
221
221
|
}, [
|
|
222
222
|
c("span", {
|
|
223
|
-
class: Y(
|
|
224
|
-
}, L(
|
|
225
|
-
c("span", null, L(
|
|
223
|
+
class: Y(g(p).e("title__tip"))
|
|
224
|
+
}, L(D.$t("hbLibComp.hbFormItemFilterModal.titleTip")), 3),
|
|
225
|
+
c("span", null, L(D.$t("hbLibComp.hbFormItemFilterModal.mostMore")) + L(a.value) + L(D.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")), 1)
|
|
226
226
|
], 2),
|
|
227
227
|
c("div", {
|
|
228
|
-
class: Y(
|
|
228
|
+
class: Y(g(p).e("show__tag"))
|
|
229
229
|
}, [
|
|
230
|
-
|
|
231
|
-
modelValue:
|
|
232
|
-
"onUpdate:modelValue": W[0] || (W[0] = (U) =>
|
|
230
|
+
S(g(He), {
|
|
231
|
+
modelValue: k.value,
|
|
232
|
+
"onUpdate:modelValue": W[0] || (W[0] = (U) => k.value = U),
|
|
233
233
|
"item-key": "key",
|
|
234
234
|
tag: "div",
|
|
235
235
|
disabled: F.value,
|
|
236
|
-
move:
|
|
236
|
+
move: y
|
|
237
237
|
}, {
|
|
238
238
|
item: r(({ element: U }) => [
|
|
239
239
|
c("div", {
|
|
240
|
-
class: Y([
|
|
240
|
+
class: Y([g(p).e("show__tag__item"), g(p).is("fixed", U.isFixed), g(p).is("linked", U.isLinked)])
|
|
241
241
|
}, [
|
|
242
242
|
A(L(U.label) + " ", 1),
|
|
243
|
-
!U.isFixed && !U.isLinked && e.list.length > 1 ? (
|
|
243
|
+
!U.isFixed && !U.isLinked && e.list.length > 1 ? (i(), E(g(jt), {
|
|
244
244
|
key: 0,
|
|
245
|
-
class: Y(
|
|
245
|
+
class: Y(g(p).e("show__tag__item-close")),
|
|
246
246
|
onClick: (te) => K(U)
|
|
247
247
|
}, null, 8, ["class", "onClick"])) : z("", !0)
|
|
248
248
|
], 2)
|
|
@@ -252,34 +252,34 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
252
252
|
], 2)
|
|
253
253
|
], 2),
|
|
254
254
|
c("section", {
|
|
255
|
-
class: Y(
|
|
255
|
+
class: Y(g(p).e("unshow"))
|
|
256
256
|
}, [
|
|
257
257
|
c("div", {
|
|
258
|
-
class: Y(
|
|
258
|
+
class: Y(g(p).e("show__title"))
|
|
259
259
|
}, [
|
|
260
260
|
c("span", {
|
|
261
|
-
class: Y(
|
|
262
|
-
}, L(
|
|
261
|
+
class: Y(g(p).e("title__tip"))
|
|
262
|
+
}, L(D.$t("hbLibComp.hbFormItemFilterModal.notShowTip")), 3)
|
|
263
263
|
], 2),
|
|
264
264
|
c("div", {
|
|
265
|
-
class: Y(
|
|
265
|
+
class: Y(g(p).e("unshow__tag"))
|
|
266
266
|
}, [
|
|
267
|
-
|
|
268
|
-
class: Y([
|
|
267
|
+
M.value.length > 0 ? (i(!0), T(q, { key: 0 }, se(M.value, (U) => (i(), T("div", {
|
|
268
|
+
class: Y([g(p).e("unshow__tag__item"), g(p).is("fixed", U.isFixed || ""), g(p).is("linked", U.isLinked || "")]),
|
|
269
269
|
key: U.key,
|
|
270
270
|
onMouseenter: (te) => ze(U),
|
|
271
271
|
onMouseleave: (te) => G(U)
|
|
272
272
|
}, [
|
|
273
273
|
A(L(U.label) + " ", 1),
|
|
274
|
-
U.active ? (
|
|
274
|
+
U.active ? (i(), T("aside", {
|
|
275
275
|
key: 0,
|
|
276
|
-
class: Y(
|
|
276
|
+
class: Y(g(p).e("unshow__tag__item-add")),
|
|
277
277
|
onClick: (te) => re(U)
|
|
278
|
-
}, L(
|
|
279
|
-
], 42, ol))), 128)) : (
|
|
278
|
+
}, L(D.$t("hbLibComp.hbFormItemFilterModal.add")), 11, al)) : z("", !0)
|
|
279
|
+
], 42, ol))), 128)) : (i(), T("div", {
|
|
280
280
|
key: 1,
|
|
281
|
-
class: Y(
|
|
282
|
-
}, L(
|
|
281
|
+
class: Y(g(p).e("unshow__tag__empty"))
|
|
282
|
+
}, L(D.$t("hbLibComp.hbFormItemFilterModal.noData")), 3))
|
|
283
283
|
], 2)
|
|
284
284
|
], 2)
|
|
285
285
|
]),
|
|
@@ -289,8 +289,8 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
289
289
|
}
|
|
290
290
|
}), X = (e, t) => {
|
|
291
291
|
const l = e.__vccOpts || e;
|
|
292
|
-
for (const [
|
|
293
|
-
l[
|
|
292
|
+
for (const [n, u] of t)
|
|
293
|
+
l[n] = u;
|
|
294
294
|
return l;
|
|
295
295
|
}, il = /* @__PURE__ */ X(nl, [["__scopeId", "data-v-93f23c9d"]]), ae = (e) => (e.install = (t) => {
|
|
296
296
|
t.component(e.name || "AnonymousComponent", e);
|
|
@@ -330,27 +330,27 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
330
330
|
},
|
|
331
331
|
emits: ["handleSearch", "handleReset", "handleSfcmConfirm", "handleMenuClick"],
|
|
332
332
|
setup(e, { expose: t, emit: l }) {
|
|
333
|
-
const
|
|
334
|
-
...
|
|
335
|
-
label:
|
|
333
|
+
const n = me("globalCompConfig", {}), u = l, b = me("HB_LIST_PAGE_CONTAINER"), d = P(() => o.searchList || []), f = Ze("form"), o = e, a = P(() => o.showNumber || n.HbLibFormItemFilterModal?.defaultShowCount || 40), m = O("show"), _ = P(() => o.needFooter || n.HbLibListForm?.needFooter), p = P(() => [...o.items]), $ = P(() => [...o.items].map((x) => ({
|
|
334
|
+
...x,
|
|
335
|
+
label: x.label?.includes("多项搜索") ? "" : x.label
|
|
336
336
|
})));
|
|
337
337
|
console.log($.value);
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
}, F = (
|
|
345
|
-
|
|
346
|
-
}, C = (
|
|
347
|
-
|
|
338
|
+
const I = P(() => o.saveKey), V = O(), w = () => {
|
|
339
|
+
u("handleSearch");
|
|
340
|
+
}, v = () => {
|
|
341
|
+
u("handleReset");
|
|
342
|
+
}, k = O(), M = () => {
|
|
343
|
+
k.value && k.value.toOpenModal();
|
|
344
|
+
}, F = (x) => {
|
|
345
|
+
u("handleMenuClick", x);
|
|
346
|
+
}, C = (x) => {
|
|
347
|
+
u("handleSfcmConfirm", x);
|
|
348
348
|
};
|
|
349
349
|
oe(
|
|
350
350
|
() => o.isFormExpanded,
|
|
351
|
-
(
|
|
352
|
-
if (
|
|
353
|
-
console.log(
|
|
351
|
+
(x) => {
|
|
352
|
+
if (x) {
|
|
353
|
+
console.log(x);
|
|
354
354
|
const R = document.querySelector("#subpackage_container");
|
|
355
355
|
R instanceof HTMLElement && (R.style.overflow = "hidden", setTimeout(() => {
|
|
356
356
|
R.style.overflow = "auto";
|
|
@@ -358,16 +358,16 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
);
|
|
361
|
-
const
|
|
362
|
-
const R =
|
|
361
|
+
const y = (x) => {
|
|
362
|
+
const R = x;
|
|
363
363
|
R.style.height = "", R.offsetHeight;
|
|
364
|
-
}, s = (
|
|
365
|
-
const R =
|
|
364
|
+
}, s = (x) => {
|
|
365
|
+
const R = x;
|
|
366
366
|
R.style.height = "", R.style.overflow = "", Ce(() => {
|
|
367
|
-
|
|
367
|
+
b.calTableHeight && b.calTableHeight();
|
|
368
368
|
});
|
|
369
|
-
}, h = (
|
|
370
|
-
const R =
|
|
369
|
+
}, h = (x) => {
|
|
370
|
+
const R = x, ee = R.querySelector(".hb-lib-form--container");
|
|
371
371
|
if (ee) {
|
|
372
372
|
const J = ee.offsetHeight;
|
|
373
373
|
R.style.height = J + "px", R.style.overflow = "hidden", R.offsetHeight, requestAnimationFrame(() => {
|
|
@@ -376,7 +376,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
376
376
|
}
|
|
377
377
|
}, H = () => {
|
|
378
378
|
Ce(() => {
|
|
379
|
-
|
|
379
|
+
b.calTableHeight && b.calTableHeight();
|
|
380
380
|
});
|
|
381
381
|
};
|
|
382
382
|
return t({
|
|
@@ -389,36 +389,36 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
389
389
|
Input: it,
|
|
390
390
|
Select: Ye,
|
|
391
391
|
CheckboxGroup: nt,
|
|
392
|
-
Checkbox:
|
|
392
|
+
Checkbox: Ie,
|
|
393
393
|
DatePicker: at,
|
|
394
394
|
InputNumber: ot,
|
|
395
395
|
RadioGroup: lt,
|
|
396
396
|
Radio: tt,
|
|
397
397
|
Switch: et,
|
|
398
398
|
Button: We,
|
|
399
|
-
Tooltip:
|
|
400
|
-
}), (
|
|
399
|
+
Tooltip: $e
|
|
400
|
+
}), (x, R) => {
|
|
401
401
|
const ee = N("a-button"), J = N("a-tooltip"), K = N("a-menu-item"), re = N("a-menu"), ce = N("a-dropdown"), ve = N("HbLibFormItemFilterModal");
|
|
402
|
-
return
|
|
403
|
-
|
|
402
|
+
return i(), T(q, null, [
|
|
403
|
+
S(Dt, {
|
|
404
404
|
name: "form-collapse",
|
|
405
|
-
onEnter:
|
|
405
|
+
onEnter: y,
|
|
406
406
|
onAfterEnter: s,
|
|
407
407
|
onLeave: h,
|
|
408
408
|
onAfterLeave: H
|
|
409
409
|
}, {
|
|
410
410
|
default: r(() => [
|
|
411
411
|
ue(c("div", {
|
|
412
|
-
class: Y([
|
|
412
|
+
class: Y([g(f).b(), "hb-lib-list-page-form-box", "hb-form-item-ui", _.value ? "isNeedFooterCss" : ""])
|
|
413
413
|
}, [
|
|
414
|
-
|
|
414
|
+
S(g(rt), le(x.$attrs, {
|
|
415
415
|
model: e.formData,
|
|
416
416
|
ref_key: "formRef",
|
|
417
417
|
ref: V,
|
|
418
418
|
class: ["hb-lib-form--container", m.value == "show" ? "" : "hide"]
|
|
419
419
|
}), {
|
|
420
420
|
default: r(() => [
|
|
421
|
-
(
|
|
421
|
+
(i(!0), T(q, null, se($.value, (B, ze) => (i(), E(g(st), le({
|
|
422
422
|
key: ze,
|
|
423
423
|
ref_for: !0
|
|
424
424
|
}, B, {
|
|
@@ -427,31 +427,31 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
427
427
|
"hb-lib-form-item-border--unneed": B.isUnNeedBorder,
|
|
428
428
|
"hb_lib_form_item--needShowAll": B.showAll
|
|
429
429
|
}
|
|
430
|
-
}),
|
|
430
|
+
}), Be({
|
|
431
431
|
default: r(() => [
|
|
432
|
-
B.type === "slot" ? j(
|
|
432
|
+
B.type === "slot" ? j(x.$slots, B.key, {
|
|
433
433
|
key: 0,
|
|
434
434
|
formData: e.formData,
|
|
435
435
|
item: B
|
|
436
436
|
}, void 0, !0) : z("", !0),
|
|
437
|
-
B.type === "mixin" ? j(
|
|
437
|
+
B.type === "mixin" ? j(x.$slots, B.key, {
|
|
438
438
|
key: 1,
|
|
439
439
|
formData: e.formData,
|
|
440
440
|
item: B
|
|
441
441
|
}, void 0, !0) : z("", !0),
|
|
442
|
-
B.type === "input" ? (
|
|
442
|
+
B.type === "input" ? (i(), E(g(it), le({
|
|
443
443
|
key: 2,
|
|
444
444
|
value: e.formData[B.key],
|
|
445
445
|
"onUpdate:value": (G) => e.formData[B.key] = G
|
|
446
446
|
}, { ref_for: !0 }, B.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
447
|
-
B.type === "select" ? (
|
|
447
|
+
B.type === "select" ? (i(), E(g(Ye), le({
|
|
448
448
|
key: 3,
|
|
449
449
|
value: e.formData[B.key],
|
|
450
450
|
"onUpdate:value": (G) => e.formData[B.key] = G
|
|
451
451
|
}, { ref_for: !0 }, B.attrs), {
|
|
452
452
|
default: r(() => [
|
|
453
|
-
(
|
|
454
|
-
key:
|
|
453
|
+
(i(!0), T(q, null, se(B.options, (G, D) => (i(), E(g(qe), {
|
|
454
|
+
key: D,
|
|
455
455
|
value: G.value
|
|
456
456
|
}, {
|
|
457
457
|
default: r(() => [
|
|
@@ -462,14 +462,14 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
462
462
|
]),
|
|
463
463
|
_: 2
|
|
464
464
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
465
|
-
B.type === "checkbox" ? (
|
|
465
|
+
B.type === "checkbox" ? (i(), E(g(nt), le({
|
|
466
466
|
key: 4,
|
|
467
467
|
value: e.formData[B.key],
|
|
468
468
|
"onUpdate:value": (G) => e.formData[B.key] = G
|
|
469
469
|
}, { ref_for: !0 }, B.attrs), {
|
|
470
470
|
default: r(() => [
|
|
471
|
-
(
|
|
472
|
-
key:
|
|
471
|
+
(i(!0), T(q, null, se(B.options, (G, D) => (i(), E(g(Ie), {
|
|
472
|
+
key: D,
|
|
473
473
|
value: G.value
|
|
474
474
|
}, {
|
|
475
475
|
default: r(() => [
|
|
@@ -480,24 +480,24 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
480
480
|
]),
|
|
481
481
|
_: 2
|
|
482
482
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
483
|
-
B.type === "date-picker" ? (
|
|
483
|
+
B.type === "date-picker" ? (i(), E(g(at), le({
|
|
484
484
|
key: 5,
|
|
485
485
|
value: e.formData[B.key],
|
|
486
486
|
"onUpdate:value": (G) => e.formData[B.key] = G
|
|
487
487
|
}, { ref_for: !0 }, B.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
488
|
-
B.type === "input-number" ? (
|
|
488
|
+
B.type === "input-number" ? (i(), E(g(ot), le({
|
|
489
489
|
key: 6,
|
|
490
490
|
value: e.formData[B.key],
|
|
491
491
|
"onUpdate:value": (G) => e.formData[B.key] = G
|
|
492
492
|
}, { ref_for: !0 }, B.attrs), null, 16, ["value", "onUpdate:value"])) : z("", !0),
|
|
493
|
-
B.type === "radio" ? (
|
|
493
|
+
B.type === "radio" ? (i(), E(g(lt), le({
|
|
494
494
|
key: 7,
|
|
495
495
|
value: e.formData[B.key],
|
|
496
496
|
"onUpdate:value": (G) => e.formData[B.key] = G
|
|
497
497
|
}, { ref_for: !0 }, B.attrs), {
|
|
498
498
|
default: r(() => [
|
|
499
|
-
(
|
|
500
|
-
key:
|
|
499
|
+
(i(!0), T(q, null, se(B.options, (G, D) => (i(), E(g(tt), {
|
|
500
|
+
key: D,
|
|
501
501
|
value: G.value
|
|
502
502
|
}, {
|
|
503
503
|
default: r(() => [
|
|
@@ -508,7 +508,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
508
508
|
]),
|
|
509
509
|
_: 2
|
|
510
510
|
}, 1040, ["value", "onUpdate:value"])) : z("", !0),
|
|
511
|
-
B.type === "switch" ? (
|
|
511
|
+
B.type === "switch" ? (i(), E(g(et), le({
|
|
512
512
|
key: 8,
|
|
513
513
|
checked: e.formData[B.key],
|
|
514
514
|
"onUpdate:checked": (G) => e.formData[B.key] = G
|
|
@@ -520,11 +520,11 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
520
520
|
name: "label",
|
|
521
521
|
fn: r(() => [
|
|
522
522
|
A(L(B.label) + " ", 1),
|
|
523
|
-
|
|
523
|
+
S(g($e), {
|
|
524
524
|
title: B.tooltip
|
|
525
525
|
}, {
|
|
526
526
|
default: r(() => [
|
|
527
|
-
|
|
527
|
+
S(g(Wt), { style: { "margin-left": "4px", color: "#1890ff" } })
|
|
528
528
|
]),
|
|
529
529
|
_: 1
|
|
530
530
|
}, 8, ["title"])
|
|
@@ -532,37 +532,37 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
532
532
|
key: "0"
|
|
533
533
|
} : void 0
|
|
534
534
|
]), 1040, ["name", "class"]))), 128)),
|
|
535
|
-
_.value ? z("", !0) : (
|
|
536
|
-
|
|
535
|
+
_.value ? z("", !0) : (i(), T("section", rl, [
|
|
536
|
+
S(ee, {
|
|
537
537
|
type: "primary",
|
|
538
|
-
onClick:
|
|
538
|
+
onClick: w,
|
|
539
539
|
class: "hb_list_page_button"
|
|
540
540
|
}, {
|
|
541
541
|
icon: r(() => [
|
|
542
|
-
|
|
542
|
+
S(g(Me))
|
|
543
543
|
]),
|
|
544
544
|
default: r(() => [
|
|
545
|
-
A(" " + L(
|
|
545
|
+
A(" " + L(x.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
546
546
|
]),
|
|
547
547
|
_: 1
|
|
548
548
|
}),
|
|
549
|
-
|
|
549
|
+
S(ee, {
|
|
550
550
|
type: "link",
|
|
551
|
-
onClick:
|
|
551
|
+
onClick: v
|
|
552
552
|
}, {
|
|
553
553
|
default: r(() => [
|
|
554
|
-
A(L(
|
|
554
|
+
A(L(x.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
}),
|
|
558
|
-
e.needFilter ? (
|
|
558
|
+
e.needFilter ? (i(), E(J, {
|
|
559
559
|
key: 0,
|
|
560
|
-
title:
|
|
560
|
+
title: x.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
561
561
|
}, {
|
|
562
562
|
default: r(() => [
|
|
563
563
|
c("span", {
|
|
564
564
|
class: "hb-lib-form-svg",
|
|
565
|
-
onClick:
|
|
565
|
+
onClick: M
|
|
566
566
|
}, [...R[0] || (R[0] = [
|
|
567
567
|
c("svg", {
|
|
568
568
|
t: "1757915025410",
|
|
@@ -584,12 +584,12 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
584
584
|
]),
|
|
585
585
|
_: 1
|
|
586
586
|
}, 8, ["title"])) : z("", !0),
|
|
587
|
-
j(
|
|
588
|
-
e.needSearchCase ? (
|
|
587
|
+
j(x.$slots, "formBtns", {}, () => [
|
|
588
|
+
e.needSearchCase ? (i(), E(ce, { key: 0 }, {
|
|
589
589
|
overlay: r(() => [
|
|
590
|
-
|
|
590
|
+
S(re, { onClick: F }, {
|
|
591
591
|
default: r(() => [
|
|
592
|
-
(
|
|
592
|
+
(i(!0), T(q, null, se(d.value, (B) => (i(), E(K, {
|
|
593
593
|
key: B.id
|
|
594
594
|
}, {
|
|
595
595
|
default: r(() => [
|
|
@@ -597,15 +597,15 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
597
597
|
]),
|
|
598
598
|
_: 2
|
|
599
599
|
}, 1024))), 128)),
|
|
600
|
-
|
|
600
|
+
S(K, { key: "add" }, {
|
|
601
601
|
default: r(() => [
|
|
602
|
-
A(L(
|
|
602
|
+
A(L(x.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
603
603
|
]),
|
|
604
604
|
_: 1
|
|
605
605
|
}),
|
|
606
|
-
|
|
606
|
+
S(K, { key: "edit" }, {
|
|
607
607
|
default: r(() => [
|
|
608
|
-
A(L(
|
|
608
|
+
A(L(x.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
609
609
|
]),
|
|
610
610
|
_: 1
|
|
611
611
|
})
|
|
@@ -614,8 +614,8 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
614
614
|
})
|
|
615
615
|
]),
|
|
616
616
|
default: r(() => [
|
|
617
|
-
|
|
618
|
-
title:
|
|
617
|
+
S(J, {
|
|
618
|
+
title: x.$t("hbLibComp.hbLibListForm.queryCase")
|
|
619
619
|
}, {
|
|
620
620
|
default: r(() => [...R[1] || (R[1] = [
|
|
621
621
|
c("span", { style: { width: "18px", height: "18px", cursor: "pointer" } }, [
|
|
@@ -655,53 +655,53 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
655
655
|
]),
|
|
656
656
|
_: 3
|
|
657
657
|
}, 16, ["model", "class"]),
|
|
658
|
-
_.value ? (
|
|
658
|
+
_.value ? (i(), T("div", {
|
|
659
659
|
key: 0,
|
|
660
|
-
class: Y([
|
|
660
|
+
class: Y([g(f).e("footer"), "form-footer"])
|
|
661
661
|
}, [
|
|
662
662
|
c("div", {
|
|
663
|
-
class: Y(
|
|
663
|
+
class: Y(g(f).e("footer__left"))
|
|
664
664
|
}, [
|
|
665
|
-
j(
|
|
665
|
+
j(x.$slots, "form-footer-left", {}, void 0, !0)
|
|
666
666
|
], 2),
|
|
667
667
|
c("div", {
|
|
668
|
-
class: Y(
|
|
668
|
+
class: Y(g(f).e("footer__right"))
|
|
669
669
|
}, [
|
|
670
|
-
m.value == "show" ? j(
|
|
670
|
+
m.value == "show" ? j(x.$slots, "form-footer-right", {
|
|
671
671
|
key: 0,
|
|
672
672
|
formRef: V.value
|
|
673
673
|
}, () => [
|
|
674
|
-
|
|
674
|
+
S(ee, {
|
|
675
675
|
type: "primary",
|
|
676
|
-
onClick:
|
|
676
|
+
onClick: w,
|
|
677
677
|
class: "hb_list_page_button"
|
|
678
678
|
}, {
|
|
679
679
|
icon: r(() => [
|
|
680
|
-
|
|
680
|
+
S(g(Me))
|
|
681
681
|
]),
|
|
682
682
|
default: r(() => [
|
|
683
|
-
A(" " + L(
|
|
683
|
+
A(" " + L(x.$t("hbLibComp.hbListPageAct.query")), 1)
|
|
684
684
|
]),
|
|
685
685
|
_: 1
|
|
686
686
|
}),
|
|
687
|
-
|
|
687
|
+
S(ee, {
|
|
688
688
|
type: "link",
|
|
689
|
-
onClick:
|
|
689
|
+
onClick: v,
|
|
690
690
|
class: "hb_list_page_button"
|
|
691
691
|
}, {
|
|
692
692
|
default: r(() => [
|
|
693
|
-
A(L(
|
|
693
|
+
A(L(x.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
694
694
|
]),
|
|
695
695
|
_: 1
|
|
696
696
|
}),
|
|
697
|
-
e.needFilter ? (
|
|
697
|
+
e.needFilter ? (i(), E(J, {
|
|
698
698
|
key: 0,
|
|
699
|
-
title:
|
|
699
|
+
title: x.$t("hbLibComp.hbListPageAct.selfDefine")
|
|
700
700
|
}, {
|
|
701
701
|
default: r(() => [
|
|
702
702
|
c("span", {
|
|
703
703
|
class: "hb-lib-form-svg",
|
|
704
|
-
onClick:
|
|
704
|
+
onClick: M
|
|
705
705
|
}, [...R[2] || (R[2] = [
|
|
706
706
|
c("svg", {
|
|
707
707
|
t: "1757915025410",
|
|
@@ -723,12 +723,12 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
723
723
|
]),
|
|
724
724
|
_: 1
|
|
725
725
|
}, 8, ["title"])) : z("", !0),
|
|
726
|
-
j(
|
|
727
|
-
e.needSearchCase ? (
|
|
726
|
+
j(x.$slots, "formBtns", {}, () => [
|
|
727
|
+
e.needSearchCase ? (i(), E(ce, { key: 0 }, {
|
|
728
728
|
overlay: r(() => [
|
|
729
|
-
|
|
729
|
+
S(re, { onClick: F }, {
|
|
730
730
|
default: r(() => [
|
|
731
|
-
(
|
|
731
|
+
(i(!0), T(q, null, se(d.value, (B) => (i(), E(K, {
|
|
732
732
|
key: B.id
|
|
733
733
|
}, {
|
|
734
734
|
default: r(() => [
|
|
@@ -736,15 +736,15 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
736
736
|
]),
|
|
737
737
|
_: 2
|
|
738
738
|
}, 1024))), 128)),
|
|
739
|
-
|
|
739
|
+
S(K, { key: "add" }, {
|
|
740
740
|
default: r(() => [
|
|
741
|
-
A(L(
|
|
741
|
+
A(L(x.$t("hbLibComp.hbLibListForm.addScheme")), 1)
|
|
742
742
|
]),
|
|
743
743
|
_: 1
|
|
744
744
|
}),
|
|
745
|
-
|
|
745
|
+
S(K, { key: "edit" }, {
|
|
746
746
|
default: r(() => [
|
|
747
|
-
A(L(
|
|
747
|
+
A(L(x.$t("hbLibComp.hbLibListForm.editScheme")), 1)
|
|
748
748
|
]),
|
|
749
749
|
_: 1
|
|
750
750
|
})
|
|
@@ -753,8 +753,8 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
753
753
|
})
|
|
754
754
|
]),
|
|
755
755
|
default: r(() => [
|
|
756
|
-
|
|
757
|
-
title:
|
|
756
|
+
S(J, {
|
|
757
|
+
title: x.$t("hbLibComp.hbLibListForm.queryCase")
|
|
758
758
|
}, {
|
|
759
759
|
default: r(() => [...R[3] || (R[3] = [
|
|
760
760
|
c("span", {
|
|
@@ -797,18 +797,18 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
797
797
|
], 2)
|
|
798
798
|
], 2)) : z("", !0)
|
|
799
799
|
], 2), [
|
|
800
|
-
[
|
|
800
|
+
[At, e.isFormExpanded]
|
|
801
801
|
])
|
|
802
802
|
]),
|
|
803
803
|
_: 3
|
|
804
804
|
}),
|
|
805
|
-
|
|
805
|
+
S(ve, {
|
|
806
806
|
showNumber: a.value,
|
|
807
|
-
list:
|
|
807
|
+
list: p.value,
|
|
808
808
|
ref_key: "HbSfCmRef",
|
|
809
|
-
ref:
|
|
809
|
+
ref: k,
|
|
810
810
|
onConfirm: C,
|
|
811
|
-
saveKey:
|
|
811
|
+
saveKey: I.value
|
|
812
812
|
}, null, 8, ["showNumber", "list", "saveKey"])
|
|
813
813
|
], 64);
|
|
814
814
|
};
|
|
@@ -841,9 +841,9 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
841
841
|
hideDomList: {}
|
|
842
842
|
},
|
|
843
843
|
setup(e) {
|
|
844
|
-
const t =
|
|
844
|
+
const t = me("globalCompConfig", {}), l = e, { isFullscreen: n, toggle: u } = Ft(document.body);
|
|
845
845
|
oe(
|
|
846
|
-
() =>
|
|
846
|
+
() => n.value,
|
|
847
847
|
(o) => {
|
|
848
848
|
let a = ["#globalHead", "#globalLeft", "#globalNavFrame"];
|
|
849
849
|
Array.isArray(l.hideDomList) && l.hideDomList.length ? a = [...l.hideDomList] : t.HbLibListPageAct?.hideDomList && (a = [...t.HbLibListPageAct.hideDomList]);
|
|
@@ -851,55 +851,55 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
851
851
|
setTimeout(o ? () => {
|
|
852
852
|
if (a?.length)
|
|
853
853
|
for (let _ = 0; _ < a.length; _++) {
|
|
854
|
-
const
|
|
855
|
-
|
|
854
|
+
const p = document.querySelector(a[_]);
|
|
855
|
+
p && (m.set(a[_], p.style.display), p.style.display = "none");
|
|
856
856
|
}
|
|
857
857
|
} : () => {
|
|
858
858
|
if (a?.length)
|
|
859
859
|
for (let _ = 0; _ < a.length; _++) {
|
|
860
|
-
const
|
|
861
|
-
if (
|
|
860
|
+
const p = document.querySelector(a[_]);
|
|
861
|
+
if (p) {
|
|
862
862
|
const $ = m.get(a[_]);
|
|
863
|
-
|
|
863
|
+
p.style.display = $ || "", m.delete(a[_]);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
}, 0);
|
|
867
867
|
}
|
|
868
868
|
);
|
|
869
|
-
const
|
|
869
|
+
const b = O(""), d = () => {
|
|
870
870
|
const o = Qe();
|
|
871
871
|
let a = localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey || "BreadCrumb") || "[]", m = o?.path;
|
|
872
872
|
if (a !== "[]") {
|
|
873
|
-
let _ = JSON.parse(a).find((
|
|
874
|
-
_ && (
|
|
873
|
+
let _ = JSON.parse(a).find((p) => p.value === m);
|
|
874
|
+
_ && (b.value = _.label.replace(/-/g, " / "));
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
|
-
|
|
877
|
+
pe(() => {
|
|
878
878
|
d();
|
|
879
879
|
});
|
|
880
|
-
const
|
|
881
|
-
o.keyCode === 192 &&
|
|
880
|
+
const f = (o) => {
|
|
881
|
+
o.keyCode === 192 && u();
|
|
882
882
|
};
|
|
883
|
-
return
|
|
884
|
-
window.addEventListener("keydown",
|
|
885
|
-
}),
|
|
886
|
-
window.removeEventListener("keydown",
|
|
883
|
+
return pe(() => {
|
|
884
|
+
window.addEventListener("keydown", f);
|
|
885
|
+
}), Te(() => {
|
|
886
|
+
window.removeEventListener("keydown", f);
|
|
887
887
|
}), (o, a) => {
|
|
888
888
|
const m = N("a-tooltip");
|
|
889
|
-
return
|
|
890
|
-
c("aside", bl, L(
|
|
889
|
+
return i(), T("section", fl, [
|
|
890
|
+
c("aside", bl, L(b.value), 1),
|
|
891
891
|
c("aside", pl, [
|
|
892
|
-
|
|
893
|
-
title:
|
|
892
|
+
S(m, {
|
|
893
|
+
title: g(n) ? `${o.$t("hbLibComp.hbListPageAct.exitFullScreen")}` : `${o.$t("hbLibComp.hbListPageAct.fullScreen")}`,
|
|
894
894
|
placement: "leftTop"
|
|
895
895
|
}, {
|
|
896
896
|
default: r(() => [
|
|
897
897
|
c("span", {
|
|
898
898
|
class: "hb-lib-list-page-act-svg",
|
|
899
899
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
900
|
-
(..._) =>
|
|
900
|
+
(..._) => g(u) && g(u)(..._))
|
|
901
901
|
}, [
|
|
902
|
-
|
|
902
|
+
g(n) ? (i(), T("svg", ml, [...a[2] || (a[2] = [
|
|
903
903
|
c("path", {
|
|
904
904
|
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",
|
|
905
905
|
fill: "#ff5000",
|
|
@@ -915,7 +915,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
915
915
|
fill: "#ff5000",
|
|
916
916
|
"p-id": "23907"
|
|
917
917
|
}, null, -1)
|
|
918
|
-
])])) : (
|
|
918
|
+
])])) : (i(), T("svg", hl, [...a[1] || (a[1] = [
|
|
919
919
|
c("path", {
|
|
920
920
|
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",
|
|
921
921
|
fill: "#ff5000",
|
|
@@ -940,31 +940,31 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
940
940
|
},
|
|
941
941
|
emits: ["handleOpenOrClose", "handleReload"],
|
|
942
942
|
setup(e, { emit: t }) {
|
|
943
|
-
const l = t,
|
|
944
|
-
|
|
945
|
-
},
|
|
943
|
+
const l = t, n = O(!0), u = () => {
|
|
944
|
+
n.value = !n.value, l("handleOpenOrClose", n.value);
|
|
945
|
+
}, b = () => {
|
|
946
946
|
l("handleReload");
|
|
947
|
-
}, d = (
|
|
947
|
+
}, d = (f) => {
|
|
948
948
|
};
|
|
949
|
-
return
|
|
949
|
+
return pe(() => {
|
|
950
950
|
window.addEventListener("keydown", d);
|
|
951
|
-
}),
|
|
951
|
+
}), Te(() => {
|
|
952
952
|
window.removeEventListener("keydown", d);
|
|
953
|
-
}), (
|
|
953
|
+
}), (f, o) => {
|
|
954
954
|
const a = N("a-tooltip");
|
|
955
|
-
return
|
|
955
|
+
return i(), T("section", _l, [
|
|
956
956
|
c("aside", Ll, [
|
|
957
|
-
j(
|
|
957
|
+
j(f.$slots, "btnsLeft", {}, void 0, !0)
|
|
958
958
|
]),
|
|
959
959
|
c("aside", Cl, [
|
|
960
|
-
e.needReload ? (
|
|
960
|
+
e.needReload ? (i(), E(a, {
|
|
961
961
|
key: 0,
|
|
962
|
-
title:
|
|
962
|
+
title: f.$t("hbLibComp.hbListBtnsAct.reload")
|
|
963
963
|
}, {
|
|
964
964
|
default: r(() => [
|
|
965
965
|
c("span", {
|
|
966
966
|
class: "hb-lib-list-btns-act-svg hb-lib-list-btns-item",
|
|
967
|
-
onClick:
|
|
967
|
+
onClick: b
|
|
968
968
|
}, [...o[0] || (o[0] = [
|
|
969
969
|
c("svg", {
|
|
970
970
|
t: "1759041224819",
|
|
@@ -986,19 +986,19 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
986
986
|
]),
|
|
987
987
|
_: 1
|
|
988
988
|
}, 8, ["title"])) : z("", !0),
|
|
989
|
-
e.needOpenOrClose ? (
|
|
989
|
+
e.needOpenOrClose ? (i(), E(a, {
|
|
990
990
|
key: 1,
|
|
991
|
-
title:
|
|
991
|
+
title: n.value ? `${f.$t("hbLibComp.hbListBtnsAct.close")}` : `${f.$t("hbLibComp.hbListBtnsAct.open")}`
|
|
992
992
|
}, {
|
|
993
993
|
default: r(() => [
|
|
994
994
|
c("span", {
|
|
995
995
|
class: "hb-lib-list-btns-act-open hb-lib-list-btns-item",
|
|
996
|
-
onClick:
|
|
996
|
+
onClick: u
|
|
997
997
|
}, [
|
|
998
|
-
|
|
998
|
+
n.value ? (i(), E(g(Yt), {
|
|
999
999
|
key: 0,
|
|
1000
1000
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1001
|
-
})) : (
|
|
1001
|
+
})) : (i(), E(g(qt), {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
style: { "font-size": "21px", color: "#ff5000" }
|
|
1004
1004
|
}))
|
|
@@ -1006,55 +1006,55 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1006
1006
|
]),
|
|
1007
1007
|
_: 1
|
|
1008
1008
|
}, 8, ["title"])) : z("", !0),
|
|
1009
|
-
j(
|
|
1009
|
+
j(f.$slots, "btnsRight", {}, void 0, !0)
|
|
1010
1010
|
])
|
|
1011
1011
|
]);
|
|
1012
1012
|
};
|
|
1013
1013
|
}
|
|
1014
|
-
}), Sl = /* @__PURE__ */ X(kl, [["__scopeId", "data-v-de62f20a"]]),
|
|
1015
|
-
const { formRef: t, offsetBottom: l = 50, minHeight:
|
|
1016
|
-
let d = null,
|
|
1014
|
+
}), Sl = /* @__PURE__ */ X(kl, [["__scopeId", "data-v-de62f20a"]]), Tl = ae(Sl), wl = (e = {}) => {
|
|
1015
|
+
const { formRef: t, offsetBottom: l = 50, minHeight: n = 300, timeOut: u = 100 } = e, b = O(0);
|
|
1016
|
+
let d = null, f = null, o = null, a = null, m = null;
|
|
1017
1017
|
const _ = () => {
|
|
1018
1018
|
m && clearTimeout(m), m = setTimeout(() => {
|
|
1019
1019
|
requestAnimationFrame(() => {
|
|
1020
1020
|
Ce(() => {
|
|
1021
|
-
const
|
|
1022
|
-
if (
|
|
1023
|
-
const F = Math.floor(
|
|
1021
|
+
const k = document.querySelector(".ant-table"), M = document.querySelector(".ant-pagination");
|
|
1022
|
+
if (k) {
|
|
1023
|
+
const F = Math.floor(k.getBoundingClientRect().top), C = window.innerHeight, s = (M ? M.offsetHeight + 20 : 40) + l;
|
|
1024
1024
|
let h = C - F - s;
|
|
1025
|
-
h <
|
|
1025
|
+
h < n && (h = n), b.value = h;
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
1028
|
});
|
|
1029
1029
|
}, 100);
|
|
1030
|
-
},
|
|
1031
|
-
const
|
|
1032
|
-
if (
|
|
1033
|
-
const
|
|
1030
|
+
}, p = () => {
|
|
1031
|
+
const k = document.querySelector(".ant-pagination");
|
|
1032
|
+
if (k) {
|
|
1033
|
+
const M = new MutationObserver(() => {
|
|
1034
1034
|
_();
|
|
1035
1035
|
});
|
|
1036
|
-
return
|
|
1036
|
+
return M.observe(k, {
|
|
1037
1037
|
childList: !0,
|
|
1038
1038
|
subtree: !0,
|
|
1039
1039
|
attributes: !0,
|
|
1040
1040
|
attributeFilter: ["style", "class"]
|
|
1041
|
-
}),
|
|
1041
|
+
}), M;
|
|
1042
1042
|
}
|
|
1043
1043
|
return null;
|
|
1044
1044
|
}, $ = () => {
|
|
1045
|
-
const
|
|
1046
|
-
|
|
1045
|
+
const k = document.querySelector(".hb-lib-list-page-form-box");
|
|
1046
|
+
k && (d = new ResizeObserver(() => {
|
|
1047
1047
|
document.querySelectorAll(".ant-tooltip").forEach((F) => {
|
|
1048
1048
|
F.style.display = "none";
|
|
1049
1049
|
}), _();
|
|
1050
|
-
}), d.observe(
|
|
1051
|
-
},
|
|
1052
|
-
const
|
|
1053
|
-
|
|
1050
|
+
}), d.observe(k));
|
|
1051
|
+
}, I = () => {
|
|
1052
|
+
const k = document.querySelector(".hb-lib-list-page-form-box");
|
|
1053
|
+
k && (o = new MutationObserver(() => {
|
|
1054
1054
|
setTimeout(() => {
|
|
1055
1055
|
_();
|
|
1056
|
-
},
|
|
1057
|
-
}), o.observe(
|
|
1056
|
+
}, u);
|
|
1057
|
+
}), o.observe(k, {
|
|
1058
1058
|
childList: !0,
|
|
1059
1059
|
subtree: !0,
|
|
1060
1060
|
attributes: !0,
|
|
@@ -1063,13 +1063,13 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1063
1063
|
}, V = () => {
|
|
1064
1064
|
a && clearTimeout(a), a = setTimeout(() => {
|
|
1065
1065
|
_();
|
|
1066
|
-
},
|
|
1067
|
-
},
|
|
1066
|
+
}, u);
|
|
1067
|
+
}, w = () => {
|
|
1068
1068
|
window.addEventListener("resize", V), Ce(() => {
|
|
1069
|
-
$(),
|
|
1069
|
+
$(), I(), f = p();
|
|
1070
1070
|
});
|
|
1071
|
-
},
|
|
1072
|
-
window.removeEventListener("resize", V), d && d.disconnect(), o && o.disconnect(),
|
|
1071
|
+
}, v = () => {
|
|
1072
|
+
window.removeEventListener("resize", V), d && d.disconnect(), o && o.disconnect(), f && f.disconnect(), a && clearTimeout(a), m && clearTimeout(m);
|
|
1073
1073
|
};
|
|
1074
1074
|
return t && oe(
|
|
1075
1075
|
() => t,
|
|
@@ -1079,12 +1079,12 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1079
1079
|
}, 200);
|
|
1080
1080
|
},
|
|
1081
1081
|
{ deep: !0 }
|
|
1082
|
-
),
|
|
1083
|
-
_(),
|
|
1084
|
-
}),
|
|
1085
|
-
|
|
1082
|
+
), pe(() => {
|
|
1083
|
+
_(), w();
|
|
1084
|
+
}), Te(() => {
|
|
1085
|
+
v();
|
|
1086
1086
|
}), {
|
|
1087
|
-
tableHeight:
|
|
1087
|
+
tableHeight: b,
|
|
1088
1088
|
calTableHeight: _
|
|
1089
1089
|
};
|
|
1090
1090
|
}, xl = /* @__PURE__ */ Q({
|
|
@@ -1100,32 +1100,32 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1100
1100
|
isUnFixTbHeight: { type: Boolean }
|
|
1101
1101
|
},
|
|
1102
1102
|
setup(e) {
|
|
1103
|
-
const t =
|
|
1104
|
-
console.log(
|
|
1105
|
-
const { calTableHeight: m, tableHeight: _ } =
|
|
1103
|
+
const t = me("globalCompConfig", {}), { isFullscreen: l } = Ft(document.body), n = e, u = Bt("PageContainerRef"), b = P(() => n.offsetHeight || t.HbLibListPageContainer?.offsetHeight || 110), d = P(() => n.offsetBottom || t.HbLibListPageContainer?.offsetBottom || 20), f = P(() => n.minHeight || t.HbLibListPageContainer?.minHeight || 300), o = P(() => n.timeOut || t.HbLibListPageContainer?.timeOut || 100), a = P(() => n.isUnFixTbHeight || t.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1104
|
+
console.log(n.isUnFixTbHeight);
|
|
1105
|
+
const { calTableHeight: m, tableHeight: _ } = wl({
|
|
1106
1106
|
offsetBottom: d.value,
|
|
1107
1107
|
// 底部预留空间
|
|
1108
|
-
minHeight:
|
|
1108
|
+
minHeight: f.value,
|
|
1109
1109
|
// table最小高度 请勿随便修改!!
|
|
1110
1110
|
timeOut: o.value
|
|
1111
|
-
}),
|
|
1111
|
+
}), p = P(() => _.value);
|
|
1112
1112
|
return Lt("HB_LIST_PAGE_CONTAINER", {
|
|
1113
|
-
PageContainerRef:
|
|
1113
|
+
PageContainerRef: u,
|
|
1114
1114
|
// 通过函数访问,
|
|
1115
1115
|
tableHeight: _,
|
|
1116
1116
|
calTableHeight: m
|
|
1117
|
-
}), ($,
|
|
1117
|
+
}), ($, I) => (i(), T("section", {
|
|
1118
1118
|
class: "hb-lib-list-page-container",
|
|
1119
1119
|
ref_key: "PageContainerRef",
|
|
1120
|
-
ref:
|
|
1120
|
+
ref: u
|
|
1121
1121
|
}, [
|
|
1122
1122
|
j($.$slots, "header"),
|
|
1123
1123
|
c("section", {
|
|
1124
1124
|
class: "list-page-box",
|
|
1125
1125
|
style: de(
|
|
1126
1126
|
a.value ? null : {
|
|
1127
|
-
"--hb-list-table-height":
|
|
1128
|
-
"--hb-list-ttable-height": e.tabelData.length ? "" :
|
|
1127
|
+
"--hb-list-table-height": g(l) ? p.value - b.value + "px" : p.value - d.value + "px",
|
|
1128
|
+
"--hb-list-ttable-height": e.tabelData.length ? "" : g(l) ? p.value - b.value + "px" : p.value - d.value + "px"
|
|
1129
1129
|
}
|
|
1130
1130
|
)
|
|
1131
1131
|
}, [
|
|
@@ -1136,7 +1136,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1136
1136
|
}), Fl = ae(xl), Hl = { style: { "font-weight": "500" } }, $l = {
|
|
1137
1137
|
key: 0,
|
|
1138
1138
|
class: "hb-lib-search-tag__description"
|
|
1139
|
-
}, Il = { class: "hb-lib-selector-dropdown" }, Ml = { class: "hb-lib-selector-search" },
|
|
1139
|
+
}, Il = { class: "hb-lib-selector-dropdown" }, Ml = { class: "hb-lib-selector-search" }, Dl = { class: "hb-lib-selector-list" }, Al = ["onClick"], Bl = { class: "hb-lib-option-content" }, Ol = { class: "hb-lib-option-label" }, zl = {
|
|
1140
1140
|
key: 0,
|
|
1141
1141
|
class: "hb-lib-selector-empty"
|
|
1142
1142
|
}, El = {
|
|
@@ -1166,19 +1166,19 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1166
1166
|
}),
|
|
1167
1167
|
emits: /* @__PURE__ */ Ve(["update:value", "update:searchValue", "change", "confirm", "cancel", "search"], ["update:value"]),
|
|
1168
1168
|
setup(e, { emit: t }) {
|
|
1169
|
-
const l = e,
|
|
1169
|
+
const l = e, n = t, u = Ct(e, "value"), b = O(!1), d = O(""), f = O([]), o = O(), a = P(() => {
|
|
1170
1170
|
if (l.remoteSearch || !d.value) return l.options;
|
|
1171
1171
|
const C = d.value.toLowerCase();
|
|
1172
|
-
return l.options.filter((
|
|
1173
|
-
}), m = P(() => l.prefix ? `${l.prefix.length * 14 + 8}px` : "0px"), _ = P(() => a.value.length === 0 ? !1 : a.value.every((C) =>
|
|
1172
|
+
return l.options.filter((y) => y.label.toLowerCase().includes(C) || y.description?.toLowerCase().includes(C));
|
|
1173
|
+
}), m = P(() => l.prefix ? `${l.prefix.length * 14 + 8}px` : "0px"), _ = P(() => a.value.length === 0 ? !1 : a.value.every((C) => f.value.includes(C.value))), p = P(() => {
|
|
1174
1174
|
if (a.value.length === 0) return !1;
|
|
1175
|
-
const C = a.value.filter((
|
|
1175
|
+
const C = a.value.filter((y) => f.value.includes(y.value)).length;
|
|
1176
1176
|
return C > 0 && C < a.value.length;
|
|
1177
1177
|
});
|
|
1178
1178
|
oe(
|
|
1179
|
-
() =>
|
|
1179
|
+
() => u.value,
|
|
1180
1180
|
(C) => {
|
|
1181
|
-
C ?
|
|
1181
|
+
C ? f.value = Array.isArray(C) ? [...C] : [C] : f.value = [];
|
|
1182
1182
|
},
|
|
1183
1183
|
{ immediate: !0 }
|
|
1184
1184
|
), oe(
|
|
@@ -1189,69 +1189,69 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1189
1189
|
{ immediate: !0 }
|
|
1190
1190
|
);
|
|
1191
1191
|
const $ = (C) => {
|
|
1192
|
-
C && (
|
|
1192
|
+
C && (b.value = C, I.value = [...f.value], d.value = "", setTimeout(() => {
|
|
1193
1193
|
if (o.value) {
|
|
1194
|
-
const
|
|
1195
|
-
|
|
1194
|
+
const y = o.value.input || o.value.$el?.querySelector("input");
|
|
1195
|
+
y && y.focus();
|
|
1196
1196
|
}
|
|
1197
1197
|
}, 100));
|
|
1198
|
-
},
|
|
1199
|
-
|
|
1200
|
-
},
|
|
1201
|
-
const C = l.multiple ?
|
|
1202
|
-
|
|
1203
|
-
},
|
|
1204
|
-
const
|
|
1205
|
-
l.remoteSearch && (
|
|
1206
|
-
}, 300),
|
|
1198
|
+
}, I = O([]), V = () => {
|
|
1199
|
+
f.value = [...I.value], b.value = !1, n("cancel");
|
|
1200
|
+
}, w = O([]), v = () => {
|
|
1201
|
+
const C = l.multiple ? f.value : f.value[0] || "", y = l.options.filter((s) => f.value.includes(s.value));
|
|
1202
|
+
w.value = y, console.log(C, y), I.value = [...f.value], u.value = C, n("update:value", C), n("change", C, y), n("confirm", C, y), b.value = !1;
|
|
1203
|
+
}, k = Gt((C) => {
|
|
1204
|
+
const y = C !== void 0 ? C : d.value;
|
|
1205
|
+
l.remoteSearch && (n("search", y), n("update:searchValue", y));
|
|
1206
|
+
}, 300), M = (C) => {
|
|
1207
1207
|
if (l.multiple) {
|
|
1208
|
-
const
|
|
1209
|
-
|
|
1208
|
+
const y = new Set(f.value);
|
|
1209
|
+
y.has(C.value) ? y.delete(C.value) : y.add(C.value), f.value = Array.from(y);
|
|
1210
1210
|
} else
|
|
1211
|
-
|
|
1211
|
+
f.value = [C.value], v();
|
|
1212
1212
|
}, F = (C) => {
|
|
1213
1213
|
if (C.target.checked) {
|
|
1214
|
-
const s = new Set(
|
|
1214
|
+
const s = new Set(f.value);
|
|
1215
1215
|
a.value.forEach((h) => {
|
|
1216
1216
|
s.add(h.value);
|
|
1217
|
-
}),
|
|
1217
|
+
}), f.value = Array.from(s);
|
|
1218
1218
|
} else {
|
|
1219
1219
|
const s = new Set(a.value.map((h) => h.value));
|
|
1220
|
-
|
|
1220
|
+
f.value = f.value.filter((h) => !s.has(h));
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
|
-
return (C,
|
|
1224
|
-
const s = N("a-tag"), h = N("a-input"), H = N("a-checkbox"),
|
|
1225
|
-
return
|
|
1223
|
+
return (C, y) => {
|
|
1224
|
+
const s = N("a-tag"), h = N("a-input"), H = N("a-checkbox"), x = N("a-radio"), R = N("a-button"), ee = N("a-select");
|
|
1225
|
+
return i(), T("div", le({
|
|
1226
1226
|
class: "hb-lib-selector-wrapper",
|
|
1227
1227
|
style: { "--prefix-width": m.value }
|
|
1228
1228
|
}, C.$attrs), [
|
|
1229
|
-
|
|
1230
|
-
value:
|
|
1231
|
-
"onUpdate:value":
|
|
1229
|
+
S(ee, {
|
|
1230
|
+
value: u.value,
|
|
1231
|
+
"onUpdate:value": y[5] || (y[5] = (J) => u.value = J),
|
|
1232
1232
|
mode: e.multiple ? "multiple" : void 0,
|
|
1233
1233
|
placeholder: e.placeholder,
|
|
1234
1234
|
"show-search": !0,
|
|
1235
1235
|
"filter-option": !1,
|
|
1236
|
-
open:
|
|
1236
|
+
open: b.value,
|
|
1237
1237
|
allowClear: "",
|
|
1238
1238
|
maxTagCount: e.maxTagCount,
|
|
1239
1239
|
options: a.value,
|
|
1240
1240
|
onDropdownVisibleChange: $,
|
|
1241
|
-
onSearch:
|
|
1241
|
+
onSearch: g(k),
|
|
1242
1242
|
"max-tag-text-length": e.tagTextLength,
|
|
1243
1243
|
class: Y({ "has-prefix": e.prefix }),
|
|
1244
1244
|
"data-prefix": e.prefix,
|
|
1245
1245
|
style: { width: "100%" }
|
|
1246
1246
|
}, {
|
|
1247
1247
|
tagRender: r(({ value: J, label: K, closable: re, option: ce }) => [
|
|
1248
|
-
|
|
1248
|
+
S(s, {
|
|
1249
1249
|
class: "hb-lib-search-tag",
|
|
1250
|
-
onClick:
|
|
1250
|
+
onClick: y[0] || (y[0] = () => $(!0))
|
|
1251
1251
|
}, {
|
|
1252
1252
|
default: r(() => [
|
|
1253
1253
|
c("span", Hl, L(K), 1),
|
|
1254
|
-
ce?.description ? (
|
|
1254
|
+
ce?.description ? (i(), T("span", $l, " (" + L(ce.description) + ") ", 1)) : z("", !0)
|
|
1255
1255
|
]),
|
|
1256
1256
|
_: 2
|
|
1257
1257
|
}, 1024)
|
|
@@ -1259,51 +1259,51 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1259
1259
|
dropdownRender: r(({ menuNode: J }) => [
|
|
1260
1260
|
c("div", Il, [
|
|
1261
1261
|
c("div", Ml, [
|
|
1262
|
-
|
|
1262
|
+
S(h, {
|
|
1263
1263
|
ref_key: "searchInputRef",
|
|
1264
1264
|
ref: o,
|
|
1265
1265
|
class: "hb-lib-selector-search-input",
|
|
1266
1266
|
value: d.value,
|
|
1267
|
-
"onUpdate:value":
|
|
1267
|
+
"onUpdate:value": y[1] || (y[1] = (K) => d.value = K),
|
|
1268
1268
|
placeholder: "请输入关键词搜索",
|
|
1269
1269
|
"allow-clear": "",
|
|
1270
|
-
onInput:
|
|
1270
|
+
onInput: y[2] || (y[2] = (K) => g(k)(K.target.value))
|
|
1271
1271
|
}, {
|
|
1272
1272
|
prefix: r(() => [
|
|
1273
|
-
|
|
1273
|
+
S(g(Me))
|
|
1274
1274
|
]),
|
|
1275
1275
|
_: 1
|
|
1276
1276
|
}, 8, ["value"])
|
|
1277
1277
|
]),
|
|
1278
|
-
c("div",
|
|
1279
|
-
(
|
|
1278
|
+
c("div", Dl, [
|
|
1279
|
+
(i(!0), T(q, null, se(a.value, (K) => (i(), T("div", {
|
|
1280
1280
|
key: K.value,
|
|
1281
|
-
class: Y(["hb-lib-selector-option", { selected:
|
|
1282
|
-
onClick: () =>
|
|
1281
|
+
class: Y(["hb-lib-selector-option", { selected: f.value.includes(K.value) }]),
|
|
1282
|
+
onClick: () => M(K)
|
|
1283
1283
|
}, [
|
|
1284
|
-
e.multiple ? (
|
|
1284
|
+
e.multiple ? (i(), E(H, {
|
|
1285
1285
|
key: 0,
|
|
1286
|
-
checked:
|
|
1287
|
-
onChange: () =>
|
|
1288
|
-
onClick:
|
|
1286
|
+
checked: f.value.includes(K.value),
|
|
1287
|
+
onChange: () => M(K),
|
|
1288
|
+
onClick: y[3] || (y[3] = Fe(() => {
|
|
1289
1289
|
}, ["stop"]))
|
|
1290
|
-
}, null, 8, ["checked", "onChange"])) : (
|
|
1290
|
+
}, null, 8, ["checked", "onChange"])) : (i(), E(x, {
|
|
1291
1291
|
key: 1,
|
|
1292
|
-
checked:
|
|
1293
|
-
onChange: () =>
|
|
1294
|
-
onClick:
|
|
1292
|
+
checked: f.value.includes(K.value),
|
|
1293
|
+
onChange: () => M(K),
|
|
1294
|
+
onClick: y[4] || (y[4] = Fe(() => {
|
|
1295
1295
|
}, ["stop"]))
|
|
1296
1296
|
}, null, 8, ["checked", "onChange"])),
|
|
1297
1297
|
c("div", Bl, [
|
|
1298
1298
|
c("div", Ol, L(K.label), 1)
|
|
1299
1299
|
])
|
|
1300
|
-
], 10,
|
|
1300
|
+
], 10, Al))), 128))
|
|
1301
1301
|
]),
|
|
1302
|
-
a.value.length === 0 ? (
|
|
1303
|
-
e.multiple ? (
|
|
1304
|
-
|
|
1302
|
+
a.value.length === 0 ? (i(), T("div", zl, L(C.$t("hbLibComp.hbFormItemFilterModal.noData")), 1)) : z("", !0),
|
|
1303
|
+
e.multiple ? (i(), T("div", El, [
|
|
1304
|
+
S(H, {
|
|
1305
1305
|
checked: _.value,
|
|
1306
|
-
indeterminate:
|
|
1306
|
+
indeterminate: p.value,
|
|
1307
1307
|
onChange: F
|
|
1308
1308
|
}, {
|
|
1309
1309
|
default: r(() => [
|
|
@@ -1312,7 +1312,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1312
1312
|
_: 1
|
|
1313
1313
|
}, 8, ["checked", "indeterminate"]),
|
|
1314
1314
|
c("div", Pl, [
|
|
1315
|
-
|
|
1315
|
+
S(R, {
|
|
1316
1316
|
size: "small",
|
|
1317
1317
|
onClick: V
|
|
1318
1318
|
}, {
|
|
@@ -1321,10 +1321,10 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1321
1321
|
]),
|
|
1322
1322
|
_: 1
|
|
1323
1323
|
}),
|
|
1324
|
-
|
|
1324
|
+
S(R, {
|
|
1325
1325
|
type: "primary",
|
|
1326
1326
|
size: "small",
|
|
1327
|
-
onClick:
|
|
1327
|
+
onClick: v
|
|
1328
1328
|
}, {
|
|
1329
1329
|
default: r(() => [
|
|
1330
1330
|
A(L(C.$t("hbLibComp.hbFormItemFilterModal.confirm")), 1)
|
|
@@ -1332,10 +1332,10 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1332
1332
|
_: 1
|
|
1333
1333
|
})
|
|
1334
1334
|
])
|
|
1335
|
-
])) : (
|
|
1336
|
-
|
|
1335
|
+
])) : (i(), T("div", Rl, [
|
|
1336
|
+
y[6] || (y[6] = c("div", null, null, -1)),
|
|
1337
1337
|
c("div", Nl, [
|
|
1338
|
-
|
|
1338
|
+
S(R, {
|
|
1339
1339
|
size: "small",
|
|
1340
1340
|
onClick: V
|
|
1341
1341
|
}, {
|
|
@@ -1367,78 +1367,78 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1367
1367
|
},
|
|
1368
1368
|
emits: ["handleConfirm", "handleCancel"],
|
|
1369
1369
|
setup(e, { expose: t, emit: l }) {
|
|
1370
|
-
const
|
|
1370
|
+
const n = e, u = l, b = O(!1), d = O(""), f = O(), o = O(), a = O([]), m = O([]), _ = O(), p = Ae({
|
|
1371
1371
|
searchText: "",
|
|
1372
1372
|
searchedColumn: ""
|
|
1373
|
-
}), $ = P(() =>
|
|
1373
|
+
}), $ = P(() => n.tableData.map((s) => (s.id = s.id || Math.random(), s))), I = P(() => n.tableColumn.map((s) => (s.customFilterDropdown && (s.onFilter = (h, H) => H[s.dataIndex].toString().toLowerCase().includes(h.toLowerCase()), s.onFilterDropdownVisibleChange = (h) => {
|
|
1374
1374
|
h && setTimeout(() => {
|
|
1375
|
-
|
|
1375
|
+
f.value?.focus();
|
|
1376
1376
|
}, 100);
|
|
1377
1377
|
}), { ...s }))), V = () => {
|
|
1378
1378
|
let s = "";
|
|
1379
1379
|
m.value.forEach((h) => {
|
|
1380
|
-
s = s + h[
|
|
1381
|
-
}), d.value = s.substring(0, s.length - 1),
|
|
1382
|
-
},
|
|
1383
|
-
|
|
1384
|
-
},
|
|
1385
|
-
|
|
1380
|
+
s = s + h[n.labelKey] + ",";
|
|
1381
|
+
}), d.value = s.substring(0, s.length - 1), b.value = !1, u("handleConfirm", m.value);
|
|
1382
|
+
}, w = () => {
|
|
1383
|
+
b.value = !1;
|
|
1384
|
+
}, v = () => {
|
|
1385
|
+
b.value = !0, Ce(() => {
|
|
1386
1386
|
const s = _.value?.$el?.querySelector(".ant-table-body");
|
|
1387
1387
|
s && (s.scrollTop = 0);
|
|
1388
1388
|
});
|
|
1389
|
-
},
|
|
1389
|
+
}, k = () => {
|
|
1390
1390
|
a.value = [], m.value = [];
|
|
1391
|
-
},
|
|
1392
|
-
d.value = "",
|
|
1391
|
+
}, M = () => {
|
|
1392
|
+
d.value = "", k();
|
|
1393
1393
|
}, F = (s, h, H) => {
|
|
1394
|
-
h(),
|
|
1394
|
+
h(), p.searchText = s[0], p.searchedColumn = H;
|
|
1395
1395
|
}, C = (s, h) => {
|
|
1396
|
-
s({ confirm: !0 }),
|
|
1397
|
-
},
|
|
1396
|
+
s({ confirm: !0 }), p.searchText = "", h();
|
|
1397
|
+
}, y = (s, h) => {
|
|
1398
1398
|
a.value = s, m.value = h;
|
|
1399
1399
|
};
|
|
1400
1400
|
return t({
|
|
1401
|
-
resetInputVal:
|
|
1401
|
+
resetInputVal: M
|
|
1402
1402
|
}), (s, h) => {
|
|
1403
|
-
const H = N("a-input"),
|
|
1404
|
-
return
|
|
1403
|
+
const H = N("a-input"), x = N("a-button"), R = N("a-table"), ee = N("a-modal");
|
|
1404
|
+
return i(), T("div", {
|
|
1405
1405
|
class: "hb-lib-multipleSelectModal-box",
|
|
1406
1406
|
ref_key: "hbMultipSelectModalRef",
|
|
1407
1407
|
ref: o
|
|
1408
1408
|
}, [
|
|
1409
|
-
|
|
1409
|
+
S(H, {
|
|
1410
1410
|
readonly: "",
|
|
1411
|
-
onClick:
|
|
1411
|
+
onClick: v,
|
|
1412
1412
|
value: d.value,
|
|
1413
1413
|
"onUpdate:value": h[0] || (h[0] = (J) => d.value = J),
|
|
1414
1414
|
placeholder: s.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")
|
|
1415
1415
|
}, {
|
|
1416
1416
|
addonAfter: r(() => [
|
|
1417
|
-
|
|
1417
|
+
S(g(Kt), { onClick: v })
|
|
1418
1418
|
]),
|
|
1419
1419
|
_: 1
|
|
1420
1420
|
}, 8, ["value", "placeholder"]),
|
|
1421
|
-
|
|
1422
|
-
visible:
|
|
1423
|
-
"onUpdate:visible": h[1] || (h[1] = (J) =>
|
|
1421
|
+
S(ee, {
|
|
1422
|
+
visible: b.value,
|
|
1423
|
+
"onUpdate:visible": h[1] || (h[1] = (J) => b.value = J),
|
|
1424
1424
|
title: e.modelTitle,
|
|
1425
1425
|
width: e.modalWidth,
|
|
1426
1426
|
class: "hb-lib-multipleSelectModal-modal"
|
|
1427
1427
|
}, {
|
|
1428
1428
|
footer: r(() => [
|
|
1429
|
-
|
|
1429
|
+
S(x, { onClick: k }, {
|
|
1430
1430
|
default: r(() => [
|
|
1431
1431
|
A(L(s.$t("hbLibComp.hbListPageAct.reset")), 1)
|
|
1432
1432
|
]),
|
|
1433
1433
|
_: 1
|
|
1434
1434
|
}),
|
|
1435
|
-
|
|
1435
|
+
S(x, { onClick: w }, {
|
|
1436
1436
|
default: r(() => [
|
|
1437
1437
|
A(L(s.$t("hbLibComp.hbFormItemFilterModal.cancel")), 1)
|
|
1438
1438
|
]),
|
|
1439
1439
|
_: 1
|
|
1440
1440
|
}),
|
|
1441
|
-
|
|
1441
|
+
S(x, {
|
|
1442
1442
|
type: "primary",
|
|
1443
1443
|
onClick: V
|
|
1444
1444
|
}, {
|
|
@@ -1449,20 +1449,20 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1449
1449
|
})
|
|
1450
1450
|
]),
|
|
1451
1451
|
default: r(() => [
|
|
1452
|
-
|
|
1452
|
+
S(R, {
|
|
1453
1453
|
ref_key: "tableRef",
|
|
1454
1454
|
ref: _,
|
|
1455
|
-
columns:
|
|
1455
|
+
columns: I.value,
|
|
1456
1456
|
dataSource: $.value,
|
|
1457
|
-
rowSelection: { selectedRowKeys: a.value, onChange:
|
|
1457
|
+
rowSelection: { selectedRowKeys: a.value, onChange: y },
|
|
1458
1458
|
rowKey: (J) => J[e.tableKey],
|
|
1459
1459
|
scroll: { y: e.tableHeight }
|
|
1460
1460
|
}, {
|
|
1461
1461
|
customFilterDropdown: r(({ setSelectedKeys: J, selectedKeys: K, confirm: re, clearFilters: ce, column: ve }) => [
|
|
1462
1462
|
c("div", Wl, [
|
|
1463
|
-
|
|
1463
|
+
S(H, {
|
|
1464
1464
|
ref_key: "searchInput",
|
|
1465
|
-
ref:
|
|
1465
|
+
ref: f,
|
|
1466
1466
|
placeholder: `请输入${ve.title}`,
|
|
1467
1467
|
value: K[0],
|
|
1468
1468
|
class: "hb-lib-form-item-filter-modal-search-input",
|
|
@@ -1470,7 +1470,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1470
1470
|
onPressEnter: (B) => F(K, re, ve.dataIndex)
|
|
1471
1471
|
}, null, 8, ["placeholder", "value", "onChange", "onPressEnter"]),
|
|
1472
1472
|
c("section", Yl, [
|
|
1473
|
-
|
|
1473
|
+
S(x, {
|
|
1474
1474
|
class: "hb-lib-form-item-filter-modal-button",
|
|
1475
1475
|
type: "ghost",
|
|
1476
1476
|
onClick: (B) => C(ce, re)
|
|
@@ -1480,7 +1480,7 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1480
1480
|
]),
|
|
1481
1481
|
_: 1
|
|
1482
1482
|
}, 8, ["onClick"]),
|
|
1483
|
-
|
|
1483
|
+
S(x, {
|
|
1484
1484
|
type: "primary",
|
|
1485
1485
|
class: "hb-lib-form-item-filter-modal-button-confirm",
|
|
1486
1486
|
onClick: (B) => F(K, re, ve.dataIndex)
|
|
@@ -1494,17 +1494,17 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1494
1494
|
])
|
|
1495
1495
|
]),
|
|
1496
1496
|
customFilterIcon: r(({ filtered: J }) => [
|
|
1497
|
-
|
|
1497
|
+
S(g(Me), {
|
|
1498
1498
|
style: de({ color: J ? "#108ee9" : void 0 })
|
|
1499
1499
|
}, null, 8, ["style"])
|
|
1500
1500
|
]),
|
|
1501
1501
|
bodyCell: r(({ text: J, column: K }) => [
|
|
1502
|
-
|
|
1503
|
-
(
|
|
1504
|
-
re.toLowerCase() ===
|
|
1502
|
+
p.searchText && p.searchedColumn === K.dataIndex ? (i(), T("span", ql, [
|
|
1503
|
+
(i(!0), T(q, null, se(J.toString().split(new RegExp(`(?<=${p.searchText})|(?=${p.searchText})`, "i")), (re, ce) => (i(), T(q, null, [
|
|
1504
|
+
re.toLowerCase() === p.searchText.toLowerCase() ? (i(), T("mark", {
|
|
1505
1505
|
key: ce,
|
|
1506
1506
|
class: "highlight"
|
|
1507
|
-
}, L(re), 1)) : (
|
|
1507
|
+
}, L(re), 1)) : (i(), T(q, { key: 1 }, [
|
|
1508
1508
|
A(L(re), 1)
|
|
1509
1509
|
], 64))
|
|
1510
1510
|
], 64))), 256))
|
|
@@ -1534,36 +1534,36 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1534
1534
|
buttonDisplaysQuantity: {}
|
|
1535
1535
|
},
|
|
1536
1536
|
setup(e, { expose: t }) {
|
|
1537
|
-
const l = e, { t:
|
|
1538
|
-
function m(
|
|
1537
|
+
const l = e, { t: n } = fe(), u = O(!1), b = O(!1), d = O(null), f = P(() => l.actions.filter((w) => w.condition !== void 0 ? w.condition : !0)), o = P(() => f.value.slice(0, l.buttonDisplaysQuantity)), a = P(() => m(f.value.slice(l.buttonDisplaysQuantity)));
|
|
1538
|
+
function m(w) {
|
|
1539
1539
|
if (l.filterPermission)
|
|
1540
|
-
return l.filterPermission(
|
|
1541
|
-
let
|
|
1542
|
-
return
|
|
1543
|
-
(!
|
|
1544
|
-
}),
|
|
1540
|
+
return l.filterPermission(w);
|
|
1541
|
+
let v = [], k = [];
|
|
1542
|
+
return v = JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH") || "[]"), !Array.isArray(v) || w.length === 0 ? (v = [], []) : (v = v.filter((M) => M.type != "2"), w.forEach((M) => {
|
|
1543
|
+
(!M.permissionsTag || v.findIndex((F) => F.action === M.permissionsTag) !== -1) && k.push(M);
|
|
1544
|
+
}), k);
|
|
1545
1545
|
}
|
|
1546
|
-
const _ = (
|
|
1547
|
-
|
|
1548
|
-
},
|
|
1549
|
-
d.value =
|
|
1546
|
+
const _ = (w) => {
|
|
1547
|
+
w.handler && w.handler(l.record);
|
|
1548
|
+
}, p = (w) => {
|
|
1549
|
+
d.value = w, u.value = !0;
|
|
1550
1550
|
}, $ = () => {
|
|
1551
1551
|
if (d.value) {
|
|
1552
|
-
|
|
1552
|
+
b.value = !0;
|
|
1553
1553
|
try {
|
|
1554
|
-
_(d.value),
|
|
1554
|
+
_(d.value), b.value = !1, u.value = !1;
|
|
1555
1555
|
} catch {
|
|
1556
|
-
|
|
1556
|
+
b.value = !1;
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
},
|
|
1560
|
-
|
|
1559
|
+
}, I = () => {
|
|
1560
|
+
u.value = !1, d.value = null;
|
|
1561
1561
|
}, V = P(() => d.value ? {
|
|
1562
1562
|
title: d.value.confirmTitle,
|
|
1563
1563
|
content: d.value.confirmContent || d.value.confirmTitle
|
|
1564
1564
|
} : {
|
|
1565
|
-
title:
|
|
1566
|
-
content:
|
|
1565
|
+
title: n("hbLibComp.hbTableAct.secendConfirm"),
|
|
1566
|
+
content: n("hbLibComp.hbTableAct.confirmContent")
|
|
1567
1567
|
});
|
|
1568
1568
|
return t({
|
|
1569
1569
|
ADropdown: ut,
|
|
@@ -1572,112 +1572,112 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1572
1572
|
APopconfirm: Ne,
|
|
1573
1573
|
AModal: je,
|
|
1574
1574
|
DownOutlined: Ke
|
|
1575
|
-
}), (
|
|
1576
|
-
const
|
|
1577
|
-
return
|
|
1578
|
-
(
|
|
1579
|
-
F.needConfirm ? (
|
|
1580
|
-
F.confirmType === "modal" ? (
|
|
1581
|
-
ue((
|
|
1575
|
+
}), (w, v) => {
|
|
1576
|
+
const k = N("a-divider"), M = kt("has");
|
|
1577
|
+
return i(), T("div", Gl, [
|
|
1578
|
+
(i(!0), T(q, null, se(o.value, (F, C) => (i(), T(q, { key: C }, [
|
|
1579
|
+
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1580
|
+
F.confirmType === "modal" ? (i(), T(q, { key: 0 }, [
|
|
1581
|
+
ue((i(), T("a", {
|
|
1582
1582
|
href: "javascript:;",
|
|
1583
|
-
onClick: (
|
|
1583
|
+
onClick: (y) => p(F),
|
|
1584
1584
|
class: "hb-lib-table-main-action"
|
|
1585
1585
|
}, [
|
|
1586
1586
|
A(L(F.label), 1)
|
|
1587
1587
|
], 8, Ql)), [
|
|
1588
|
-
[
|
|
1588
|
+
[M, F.permissionsTag || null]
|
|
1589
1589
|
]),
|
|
1590
|
-
a.value && a.value.length > 0 || C !== o.value.length - 1 ? (
|
|
1590
|
+
a.value && a.value.length > 0 || C !== o.value.length - 1 ? (i(), E(k, {
|
|
1591
1591
|
key: 0,
|
|
1592
1592
|
type: "vertical"
|
|
1593
1593
|
})) : z("", !0)
|
|
1594
|
-
], 64)) : (
|
|
1595
|
-
|
|
1594
|
+
], 64)) : (i(), T(q, { key: 1 }, [
|
|
1595
|
+
S(g(Ne), {
|
|
1596
1596
|
title: F.confirmTitle,
|
|
1597
|
-
onConfirm: (
|
|
1597
|
+
onConfirm: (y) => _(F)
|
|
1598
1598
|
}, {
|
|
1599
1599
|
default: r(() => [
|
|
1600
|
-
ue((
|
|
1600
|
+
ue((i(), T("a", Zl, [
|
|
1601
1601
|
A(L(F.label), 1)
|
|
1602
1602
|
])), [
|
|
1603
|
-
[
|
|
1603
|
+
[M, F.permissionsTag || null]
|
|
1604
1604
|
])
|
|
1605
1605
|
]),
|
|
1606
1606
|
_: 2
|
|
1607
1607
|
}, 1032, ["title", "onConfirm"]),
|
|
1608
|
-
a.value && a.value.length > 0 || C !== o.value.length - 1 ? (
|
|
1608
|
+
a.value && a.value.length > 0 || C !== o.value.length - 1 ? (i(), E(k, {
|
|
1609
1609
|
key: 0,
|
|
1610
1610
|
type: "vertical"
|
|
1611
1611
|
})) : z("", !0)
|
|
1612
1612
|
], 64))
|
|
1613
|
-
], 64)) : F.slot ? (
|
|
1614
|
-
j(
|
|
1615
|
-
a.value && a.value.length > 0 || C !== o.value.length - 1 ? (
|
|
1613
|
+
], 64)) : F.slot ? (i(), T(q, { key: 1 }, [
|
|
1614
|
+
j(w.$slots, F.slot, { item: F }, void 0, !0),
|
|
1615
|
+
a.value && a.value.length > 0 || C !== o.value.length - 1 ? (i(), E(k, {
|
|
1616
1616
|
key: 0,
|
|
1617
1617
|
type: "vertical"
|
|
1618
1618
|
})) : z("", !0)
|
|
1619
|
-
], 64)) : (
|
|
1620
|
-
ue((
|
|
1619
|
+
], 64)) : (i(), T(q, { key: 2 }, [
|
|
1620
|
+
ue((i(), T("a", {
|
|
1621
1621
|
href: "javascript:;",
|
|
1622
|
-
onClick: (
|
|
1622
|
+
onClick: (y) => _(F),
|
|
1623
1623
|
class: "hb-lib-table-main-action"
|
|
1624
1624
|
}, [
|
|
1625
1625
|
A(L(F.label), 1)
|
|
1626
1626
|
], 8, Xl)), [
|
|
1627
|
-
[
|
|
1627
|
+
[M, F.permissionsTag || null]
|
|
1628
1628
|
]),
|
|
1629
|
-
a.value && a.value.length > 0 || C !== o.value.length - 1 ? ue((
|
|
1629
|
+
a.value && a.value.length > 0 || C !== o.value.length - 1 ? ue((i(), E(k, {
|
|
1630
1630
|
key: 0,
|
|
1631
1631
|
type: "vertical"
|
|
1632
1632
|
}, null, 512)), [
|
|
1633
|
-
[
|
|
1633
|
+
[M, F.permissionsTag || null]
|
|
1634
1634
|
]) : z("", !0)
|
|
1635
1635
|
], 64))
|
|
1636
1636
|
], 64))), 128)),
|
|
1637
|
-
a.value && a.value.length > 0 ? (
|
|
1637
|
+
a.value && a.value.length > 0 ? (i(), E(g(ut), { key: 0 }, {
|
|
1638
1638
|
overlay: r(() => [
|
|
1639
|
-
|
|
1639
|
+
S(g(dt), null, {
|
|
1640
1640
|
default: r(() => [
|
|
1641
|
-
(
|
|
1641
|
+
(i(!0), T(q, null, se(a.value, (F, C) => ue((i(), E(g(ct), { key: C }, {
|
|
1642
1642
|
default: r(() => [
|
|
1643
|
-
F.needConfirm ? (
|
|
1644
|
-
F.confirmType === "modal" ? ue((
|
|
1643
|
+
F.needConfirm ? (i(), T(q, { key: 0 }, [
|
|
1644
|
+
F.confirmType === "modal" ? ue((i(), T("a", {
|
|
1645
1645
|
key: 0,
|
|
1646
1646
|
href: "javascript:;",
|
|
1647
|
-
onClick: (
|
|
1647
|
+
onClick: (y) => p(F)
|
|
1648
1648
|
}, [
|
|
1649
1649
|
A(L(F.label), 1)
|
|
1650
1650
|
], 8, to)), [
|
|
1651
|
-
[
|
|
1652
|
-
]) : ue((
|
|
1651
|
+
[M, F.permissionsTag || null]
|
|
1652
|
+
]) : ue((i(), E(g(Ne), {
|
|
1653
1653
|
key: 1,
|
|
1654
1654
|
title: F.confirmTitle,
|
|
1655
|
-
onConfirm: (
|
|
1655
|
+
onConfirm: (y) => _(F)
|
|
1656
1656
|
}, {
|
|
1657
1657
|
default: r(() => [
|
|
1658
|
-
ue((
|
|
1658
|
+
ue((i(), T("a", lo, [
|
|
1659
1659
|
A(L(F.label), 1)
|
|
1660
1660
|
])), [
|
|
1661
|
-
[
|
|
1661
|
+
[M, F.permissionsTag || null]
|
|
1662
1662
|
])
|
|
1663
1663
|
]),
|
|
1664
1664
|
_: 2
|
|
1665
1665
|
}, 1032, ["title", "onConfirm"])), [
|
|
1666
|
-
[
|
|
1666
|
+
[M, F.permissionsTag || null]
|
|
1667
1667
|
])
|
|
1668
|
-
], 64)) : ue((
|
|
1668
|
+
], 64)) : ue((i(), T("a", {
|
|
1669
1669
|
key: 1,
|
|
1670
1670
|
href: "javascript:;",
|
|
1671
|
-
onClick: (
|
|
1671
|
+
onClick: (y) => _(F)
|
|
1672
1672
|
}, [
|
|
1673
1673
|
A(L(F.label), 1)
|
|
1674
1674
|
], 8, oo)), [
|
|
1675
|
-
[
|
|
1675
|
+
[M, F.permissionsTag || null]
|
|
1676
1676
|
])
|
|
1677
1677
|
]),
|
|
1678
1678
|
_: 2
|
|
1679
1679
|
}, 1024)), [
|
|
1680
|
-
[
|
|
1680
|
+
[M, F.permissionsTag || null]
|
|
1681
1681
|
])), 128))
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 1
|
|
@@ -1685,18 +1685,18 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1685
1685
|
]),
|
|
1686
1686
|
default: r(() => [
|
|
1687
1687
|
c("a", eo, [
|
|
1688
|
-
A(L(
|
|
1689
|
-
|
|
1688
|
+
A(L(w.$t("hbLibComp.hbTableAct.more")) + " ", 1),
|
|
1689
|
+
S(g(Ke), { style: { "font-size": "12px", "margin-left": "4px" } })
|
|
1690
1690
|
])
|
|
1691
1691
|
]),
|
|
1692
1692
|
_: 1
|
|
1693
1693
|
})) : z("", !0),
|
|
1694
|
-
|
|
1695
|
-
visible:
|
|
1694
|
+
S(g(je), {
|
|
1695
|
+
visible: u.value,
|
|
1696
1696
|
title: V.value.title,
|
|
1697
|
-
"confirm-loading":
|
|
1697
|
+
"confirm-loading": b.value,
|
|
1698
1698
|
onOk: $,
|
|
1699
|
-
onCancel:
|
|
1699
|
+
onCancel: I
|
|
1700
1700
|
}, {
|
|
1701
1701
|
default: r(() => [
|
|
1702
1702
|
c("p", ao, L(V.value.content), 1)
|
|
@@ -1708,24 +1708,24 @@ const tl = "hb-", Ze = (e = "") => {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
}), io = /* @__PURE__ */ X(no, [["__scopeId", "data-v-2e9541c9"]]), so = ae(io), ft = (e) => ({ tableWidth: P(() => {
|
|
1710
1710
|
const l = Array.isArray(e) ? e : e.value;
|
|
1711
|
-
return !l || l.length === 0 ? 0 : l.map((
|
|
1711
|
+
return !l || l.length === 0 ? 0 : l.map((n) => n.width && Number(n.width.toString().replace("px", "")) || 0).reduce((n, u) => n + u, 0);
|
|
1712
1712
|
}) });
|
|
1713
|
-
var ro = typeof global == "object" && global && global.Object === Object && global, co = typeof self == "object" && self && self.Object === Object && self, Ht = ro || co || Function("return this")(),
|
|
1713
|
+
var ro = typeof global == "object" && global && global.Object === Object && global, co = typeof self == "object" && self && self.Object === Object && self, Ht = ro || co || Function("return this")(), De = Ht.Symbol, $t = Object.prototype, uo = $t.hasOwnProperty, fo = $t.toString, ke = De ? De.toStringTag : void 0;
|
|
1714
1714
|
function bo(e) {
|
|
1715
1715
|
var t = uo.call(e, ke), l = e[ke];
|
|
1716
1716
|
try {
|
|
1717
1717
|
e[ke] = void 0;
|
|
1718
|
-
var
|
|
1718
|
+
var n = !0;
|
|
1719
1719
|
} catch {
|
|
1720
1720
|
}
|
|
1721
|
-
var
|
|
1722
|
-
return
|
|
1721
|
+
var u = fo.call(e);
|
|
1722
|
+
return n && (t ? e[ke] = l : delete e[ke]), u;
|
|
1723
1723
|
}
|
|
1724
1724
|
var po = Object.prototype, ho = po.toString;
|
|
1725
1725
|
function mo(e) {
|
|
1726
1726
|
return ho.call(e);
|
|
1727
1727
|
}
|
|
1728
|
-
var vo = "[object Null]", go = "[object Undefined]", bt =
|
|
1728
|
+
var vo = "[object Null]", go = "[object Undefined]", bt = De ? De.toStringTag : void 0;
|
|
1729
1729
|
function yo(e) {
|
|
1730
1730
|
return e == null ? e === void 0 ? go : vo : bt && bt in Object(e) ? bo(e) : mo(e);
|
|
1731
1731
|
}
|
|
@@ -1742,9 +1742,9 @@ function So(e) {
|
|
|
1742
1742
|
;
|
|
1743
1743
|
return t;
|
|
1744
1744
|
}
|
|
1745
|
-
var
|
|
1746
|
-
function
|
|
1747
|
-
return e && e.slice(0, So(e) + 1).replace(
|
|
1745
|
+
var To = /^\s+/;
|
|
1746
|
+
function wo(e) {
|
|
1747
|
+
return e && e.slice(0, So(e) + 1).replace(To, "");
|
|
1748
1748
|
}
|
|
1749
1749
|
function Je(e) {
|
|
1750
1750
|
var t = typeof e;
|
|
@@ -1762,59 +1762,59 @@ function ht(e) {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
if (typeof e != "string")
|
|
1764
1764
|
return e === 0 ? e : +e;
|
|
1765
|
-
e =
|
|
1765
|
+
e = wo(e);
|
|
1766
1766
|
var l = Fo.test(e);
|
|
1767
1767
|
return l || Ho.test(e) ? $o(e.slice(2), l ? 2 : 8) : xo.test(e) ? pt : +e;
|
|
1768
1768
|
}
|
|
1769
1769
|
var Ue = function() {
|
|
1770
1770
|
return Ht.Date.now();
|
|
1771
|
-
}, Io = "Expected a function", Mo = Math.max,
|
|
1772
|
-
function
|
|
1773
|
-
var
|
|
1771
|
+
}, Io = "Expected a function", Mo = Math.max, Do = Math.min;
|
|
1772
|
+
function Ao(e, t, l) {
|
|
1773
|
+
var n, u, b, d, f, o, a = 0, m = !1, _ = !1, p = !0;
|
|
1774
1774
|
if (typeof e != "function")
|
|
1775
1775
|
throw new TypeError(Io);
|
|
1776
|
-
t = ht(t) || 0, Je(l) && (m = !!l.leading, _ = "maxWait" in l,
|
|
1777
|
-
function $(
|
|
1778
|
-
var s =
|
|
1779
|
-
return
|
|
1776
|
+
t = ht(t) || 0, Je(l) && (m = !!l.leading, _ = "maxWait" in l, b = _ ? Mo(ht(l.maxWait) || 0, t) : b, p = "trailing" in l ? !!l.trailing : p);
|
|
1777
|
+
function $(y) {
|
|
1778
|
+
var s = n, h = u;
|
|
1779
|
+
return n = u = void 0, a = y, d = e.apply(h, s), d;
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1782
|
-
return a =
|
|
1781
|
+
function I(y) {
|
|
1782
|
+
return a = y, f = setTimeout(v, t), m ? $(y) : d;
|
|
1783
1783
|
}
|
|
1784
|
-
function V(
|
|
1785
|
-
var s =
|
|
1786
|
-
return _ ?
|
|
1784
|
+
function V(y) {
|
|
1785
|
+
var s = y - o, h = y - a, H = t - s;
|
|
1786
|
+
return _ ? Do(H, b - h) : H;
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1789
|
-
var s =
|
|
1790
|
-
return o === void 0 || s >= t || s < 0 || _ && h >=
|
|
1788
|
+
function w(y) {
|
|
1789
|
+
var s = y - o, h = y - a;
|
|
1790
|
+
return o === void 0 || s >= t || s < 0 || _ && h >= b;
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1793
|
-
var
|
|
1794
|
-
if (
|
|
1795
|
-
return
|
|
1796
|
-
|
|
1792
|
+
function v() {
|
|
1793
|
+
var y = Ue();
|
|
1794
|
+
if (w(y))
|
|
1795
|
+
return k(y);
|
|
1796
|
+
f = setTimeout(v, V(y));
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1799
|
-
return
|
|
1798
|
+
function k(y) {
|
|
1799
|
+
return f = void 0, p && n ? $(y) : (n = u = void 0, d);
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1802
|
-
|
|
1801
|
+
function M() {
|
|
1802
|
+
f !== void 0 && clearTimeout(f), a = 0, n = o = u = f = void 0;
|
|
1803
1803
|
}
|
|
1804
1804
|
function F() {
|
|
1805
|
-
return
|
|
1805
|
+
return f === void 0 ? d : k(Ue());
|
|
1806
1806
|
}
|
|
1807
1807
|
function C() {
|
|
1808
|
-
var
|
|
1809
|
-
if (
|
|
1810
|
-
if (
|
|
1811
|
-
return
|
|
1808
|
+
var y = Ue(), s = w(y);
|
|
1809
|
+
if (n = arguments, u = this, o = y, s) {
|
|
1810
|
+
if (f === void 0)
|
|
1811
|
+
return I(o);
|
|
1812
1812
|
if (_)
|
|
1813
|
-
return clearTimeout(
|
|
1813
|
+
return clearTimeout(f), f = setTimeout(v, t), $(o);
|
|
1814
1814
|
}
|
|
1815
|
-
return
|
|
1815
|
+
return f === void 0 && (f = setTimeout(v, t)), d;
|
|
1816
1816
|
}
|
|
1817
|
-
return C.cancel =
|
|
1817
|
+
return C.cancel = M, C.flush = F, C;
|
|
1818
1818
|
}
|
|
1819
1819
|
const Bo = {
|
|
1820
1820
|
key: 0,
|
|
@@ -1831,76 +1831,76 @@ const Bo = {
|
|
|
1831
1831
|
},
|
|
1832
1832
|
emits: ["change", "resizeCol"],
|
|
1833
1833
|
setup(e, { emit: t }) {
|
|
1834
|
-
const l =
|
|
1834
|
+
const l = me("globalCompConfig", {}), n = t, { t: u } = fe(), b = e, d = O([]), f = me("HB_LIST_PAGE_CONTAINER"), { tableWidth: o } = ft(d), a = O(o.value), m = P(() => b.isUnFixTbHeight || l.HbLibListPageContainer?.isUnFixTbHeight || !1);
|
|
1835
1835
|
oe(
|
|
1836
|
-
() =>
|
|
1837
|
-
(
|
|
1838
|
-
const
|
|
1839
|
-
d.value =
|
|
1836
|
+
() => b.columns,
|
|
1837
|
+
(v) => {
|
|
1838
|
+
const k = v.filter((F) => F != null && F.checked);
|
|
1839
|
+
d.value = k.map((F) => {
|
|
1840
1840
|
let C = { ...F, title: F.title || F.label, align: F.align || l.listTable?.align || "center" };
|
|
1841
1841
|
C.ellipsis && !C.needTooltip && (C.needTooltip = !0);
|
|
1842
|
-
let
|
|
1842
|
+
let y = b.defaultWidth || l.listTable?.defaultColWidth || 150;
|
|
1843
1843
|
if (!C.width)
|
|
1844
|
-
C.width =
|
|
1844
|
+
C.width = y;
|
|
1845
1845
|
else if (typeof C.width == "string") {
|
|
1846
1846
|
const s = parseInt(C.width, 10);
|
|
1847
|
-
C.width = isNaN(s) ?
|
|
1847
|
+
C.width = isNaN(s) ? y : s;
|
|
1848
1848
|
}
|
|
1849
1849
|
return C.resizable === void 0 && (C.resizable = !0), C;
|
|
1850
1850
|
});
|
|
1851
|
-
const { tableWidth:
|
|
1852
|
-
a.value =
|
|
1851
|
+
const { tableWidth: M } = ft(d);
|
|
1852
|
+
a.value = M.value;
|
|
1853
1853
|
},
|
|
1854
1854
|
{
|
|
1855
1855
|
immediate: !0,
|
|
1856
1856
|
deep: !0
|
|
1857
1857
|
}
|
|
1858
1858
|
);
|
|
1859
|
-
const _ =
|
|
1860
|
-
|
|
1861
|
-
}, l.listTable?.colSaveTimeOut || 800),
|
|
1862
|
-
if (
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1859
|
+
const _ = Ao(() => {
|
|
1860
|
+
n("resizeCol", d);
|
|
1861
|
+
}, l.listTable?.colSaveTimeOut || 800), p = (v, k) => {
|
|
1862
|
+
if (k) {
|
|
1863
|
+
const M = typeof v == "string" ? parseInt(v, 10) : v;
|
|
1864
|
+
k.width = isNaN(M) ? l.listTable?.defaultColWidth || 150 : M, Ce(() => {
|
|
1865
1865
|
_();
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
|
-
}, $ = (
|
|
1869
|
-
|
|
1870
|
-
},
|
|
1871
|
-
return (
|
|
1872
|
-
const
|
|
1873
|
-
return
|
|
1874
|
-
class: Y(["hb-lib-list-table", { "nowrap-table":
|
|
1868
|
+
}, $ = (v, k, M) => {
|
|
1869
|
+
v?.current && n("change", v, k, M);
|
|
1870
|
+
}, I = (v, k = "YYYY-MM-DD HH:mm:ss") => v ? Oe(v).format(k) : "", V = (v, k) => v && k[v] || "", w = (v, k = l.listTable?.ellipsisNumber || 20) => v ? v.length > k ? `${v.substring(0, k)}...` : v : "";
|
|
1871
|
+
return (v, k) => {
|
|
1872
|
+
const M = N("a-empty"), F = N("a-tooltip"), C = N("HbLibCopy"), y = N("a-tag"), s = N("a-table");
|
|
1873
|
+
return i(), T("div", {
|
|
1874
|
+
class: Y(["hb-lib-list-table", { "nowrap-table": b.rowHeight }]),
|
|
1875
1875
|
style: de({ "--hb-lib-table-td-height": e.rowHeight && e.rowHeight + "px" || "" })
|
|
1876
1876
|
}, [
|
|
1877
|
-
|
|
1878
|
-
j(
|
|
1879
|
-
j(
|
|
1877
|
+
v.$slots.tableActLeft ? (i(), T("section", Bo, [
|
|
1878
|
+
j(v.$slots, "tableActLeft", {}, void 0, !0),
|
|
1879
|
+
j(v.$slots, "tableActRight", {}, void 0, !0)
|
|
1880
1880
|
])) : z("", !0),
|
|
1881
|
-
|
|
1881
|
+
S(s, le(v.$attrs, {
|
|
1882
1882
|
bordered: "",
|
|
1883
1883
|
columns: d.value,
|
|
1884
1884
|
tableLayout: "fixed",
|
|
1885
|
-
onResizeColumn:
|
|
1885
|
+
onResizeColumn: p,
|
|
1886
1886
|
onChange: $,
|
|
1887
1887
|
scroll: m.value ? {
|
|
1888
1888
|
x: a.value
|
|
1889
|
-
} : { x: a.value, y:
|
|
1890
|
-
}),
|
|
1889
|
+
} : { x: a.value, y: g(f).tableHeight }
|
|
1890
|
+
}), Be({
|
|
1891
1891
|
emptyText: r(() => [
|
|
1892
1892
|
c("div", Oo, [
|
|
1893
|
-
|
|
1894
|
-
description:
|
|
1893
|
+
S(M, {
|
|
1894
|
+
description: g(u)("hbLibComp.hbListTable.noData")
|
|
1895
1895
|
}, null, 8, ["description"])
|
|
1896
1896
|
])
|
|
1897
1897
|
]),
|
|
1898
1898
|
_: 2
|
|
1899
1899
|
}, [
|
|
1900
|
-
|
|
1900
|
+
v.$slots.headerCell ? {
|
|
1901
1901
|
name: "headerCell",
|
|
1902
1902
|
fn: r(({ column: h }) => [
|
|
1903
|
-
j(
|
|
1903
|
+
j(v.$slots, "headerCell", {
|
|
1904
1904
|
column: h,
|
|
1905
1905
|
title: h.title
|
|
1906
1906
|
}, () => [
|
|
@@ -1909,16 +1909,16 @@ const Bo = {
|
|
|
1909
1909
|
]),
|
|
1910
1910
|
key: "0"
|
|
1911
1911
|
} : void 0,
|
|
1912
|
-
|
|
1912
|
+
v.$slots.bodyCell ? {
|
|
1913
1913
|
name: "bodyCell",
|
|
1914
|
-
fn: r(({ column: h, record: H, index:
|
|
1915
|
-
j(
|
|
1914
|
+
fn: r(({ column: h, record: H, index: x, text: R }) => [
|
|
1915
|
+
j(v.$slots, "bodyCell", {
|
|
1916
1916
|
column: h,
|
|
1917
1917
|
record: H,
|
|
1918
|
-
index:
|
|
1918
|
+
index: x,
|
|
1919
1919
|
text: R
|
|
1920
1920
|
}, void 0, !0),
|
|
1921
|
-
h && h.needTooltip && !h.needCopy ? (
|
|
1921
|
+
h && h.needTooltip && !h.needCopy ? (i(), E(F, {
|
|
1922
1922
|
key: 0,
|
|
1923
1923
|
placement: e.tooltipPlacement
|
|
1924
1924
|
}, {
|
|
@@ -1929,31 +1929,31 @@ const Bo = {
|
|
|
1929
1929
|
A(" " + L(H[h.dataIndex]), 1)
|
|
1930
1930
|
]),
|
|
1931
1931
|
_: 2
|
|
1932
|
-
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (
|
|
1932
|
+
}, 1032, ["placement"])) : h && h.needCopy && !h.needTooltip ? (i(), T("div", zo, [
|
|
1933
1933
|
A(L(H[h.dataIndex]) + " ", 1),
|
|
1934
|
-
|
|
1934
|
+
S(C, {
|
|
1935
1935
|
"cp-text": H[h.dataIndex],
|
|
1936
1936
|
style: { position: "relative" }
|
|
1937
1937
|
}, null, 8, ["cp-text"])
|
|
1938
1938
|
])) : z("", !0),
|
|
1939
|
-
h && h.needTooltip && h.needCopy ? (
|
|
1940
|
-
|
|
1939
|
+
h && h.needTooltip && h.needCopy ? (i(), T("div", Eo, [
|
|
1940
|
+
S(F, { placement: e.tooltipPlacement }, {
|
|
1941
1941
|
title: r(() => [
|
|
1942
1942
|
A(L(H[h.dataIndex]), 1)
|
|
1943
1943
|
]),
|
|
1944
1944
|
default: r(() => [
|
|
1945
|
-
A(" " + L(
|
|
1945
|
+
A(" " + L(w(H[h.dataIndex], h.strLen)), 1)
|
|
1946
1946
|
]),
|
|
1947
1947
|
_: 2
|
|
1948
1948
|
}, 1032, ["placement"]),
|
|
1949
|
-
|
|
1949
|
+
S(C, {
|
|
1950
1950
|
"cp-text": H[h.dataIndex],
|
|
1951
1951
|
style: { position: "relative" }
|
|
1952
1952
|
}, null, 8, ["cp-text"])
|
|
1953
|
-
])) : h && h.needFormat ? (
|
|
1954
|
-
A(L(
|
|
1955
|
-
], 64)) : h && h.tags ? (
|
|
1956
|
-
V(H[h.dataIndex], h.tags) ? (
|
|
1953
|
+
])) : h && h.needFormat ? (i(), T(q, { key: 3 }, [
|
|
1954
|
+
A(L(I(H[h.dataIndex], h.format)), 1)
|
|
1955
|
+
], 64)) : h && h.tags ? (i(), T(q, { key: 4 }, [
|
|
1956
|
+
V(H[h.dataIndex], h.tags) ? (i(), E(y, {
|
|
1957
1957
|
key: 0,
|
|
1958
1958
|
color: V(H[h.dataIndex], h.tags)
|
|
1959
1959
|
}, {
|
|
@@ -1966,59 +1966,59 @@ const Bo = {
|
|
|
1966
1966
|
]),
|
|
1967
1967
|
key: "1"
|
|
1968
1968
|
} : void 0,
|
|
1969
|
-
|
|
1969
|
+
v.$slots.expandedRowRender ? {
|
|
1970
1970
|
name: "expandedRowRender",
|
|
1971
1971
|
fn: r(({ record: h, index: H }) => [
|
|
1972
|
-
j(
|
|
1972
|
+
j(v.$slots, "expandedRowRender", {
|
|
1973
1973
|
record: h,
|
|
1974
1974
|
index: H
|
|
1975
1975
|
}, void 0, !0)
|
|
1976
1976
|
]),
|
|
1977
1977
|
key: "2"
|
|
1978
1978
|
} : void 0,
|
|
1979
|
-
|
|
1979
|
+
v.$slots.customFilterDropdown ? {
|
|
1980
1980
|
name: "customFilterDropdown",
|
|
1981
1981
|
fn: r(({ column: h }) => [
|
|
1982
|
-
j(
|
|
1982
|
+
j(v.$slots, "customFilterDropdown", { column: h }, void 0, !0)
|
|
1983
1983
|
]),
|
|
1984
1984
|
key: "3"
|
|
1985
1985
|
} : void 0,
|
|
1986
|
-
|
|
1986
|
+
v.$slots.customFilterIcon ? {
|
|
1987
1987
|
name: "customFilterIcon",
|
|
1988
1988
|
fn: r(({ column: h }) => [
|
|
1989
|
-
j(
|
|
1989
|
+
j(v.$slots, "customFilterIcon", { column: h }, void 0, !0)
|
|
1990
1990
|
]),
|
|
1991
1991
|
key: "4"
|
|
1992
1992
|
} : void 0,
|
|
1993
|
-
|
|
1993
|
+
v.$slots.expandIcon ? {
|
|
1994
1994
|
name: "expandIcon",
|
|
1995
|
-
fn: r(({ expanded: h, record: H, index:
|
|
1996
|
-
j(
|
|
1995
|
+
fn: r(({ expanded: h, record: H, index: x }) => [
|
|
1996
|
+
j(v.$slots, "expandIcon", {
|
|
1997
1997
|
expanded: h,
|
|
1998
1998
|
record: H,
|
|
1999
|
-
index:
|
|
1999
|
+
index: x
|
|
2000
2000
|
}, void 0, !0)
|
|
2001
2001
|
]),
|
|
2002
2002
|
key: "5"
|
|
2003
2003
|
} : void 0,
|
|
2004
|
-
|
|
2004
|
+
v.$slots.footer ? {
|
|
2005
2005
|
name: "footer",
|
|
2006
2006
|
fn: r(() => [
|
|
2007
|
-
j(
|
|
2007
|
+
j(v.$slots, "footer", {}, void 0, !0)
|
|
2008
2008
|
]),
|
|
2009
2009
|
key: "6"
|
|
2010
2010
|
} : void 0,
|
|
2011
|
-
|
|
2011
|
+
v.$slots.summary ? {
|
|
2012
2012
|
name: "summary",
|
|
2013
2013
|
fn: r(() => [
|
|
2014
|
-
j(
|
|
2014
|
+
j(v.$slots, "summary", {}, void 0, !0)
|
|
2015
2015
|
]),
|
|
2016
2016
|
key: "7"
|
|
2017
2017
|
} : void 0,
|
|
2018
|
-
|
|
2018
|
+
v.$slots.title ? {
|
|
2019
2019
|
name: "title",
|
|
2020
2020
|
fn: r(() => [
|
|
2021
|
-
j(
|
|
2021
|
+
j(v.$slots, "title", {}, void 0, !0)
|
|
2022
2022
|
]),
|
|
2023
2023
|
key: "8"
|
|
2024
2024
|
} : void 0
|
|
@@ -2068,129 +2068,129 @@ const Bo = {
|
|
|
2068
2068
|
},
|
|
2069
2069
|
emits: ["on-get-columns"],
|
|
2070
2070
|
setup(e, { emit: t }) {
|
|
2071
|
-
const l = t, { t:
|
|
2071
|
+
const l = t, { t: n } = fe(), u = e, b = O([]), d = P(() => o.value.filter((y) => y.checked));
|
|
2072
2072
|
O([]);
|
|
2073
|
-
const
|
|
2074
|
-
a.value =
|
|
2075
|
-
}, $ = (
|
|
2076
|
-
const s =
|
|
2077
|
-
if (
|
|
2078
|
-
const H =
|
|
2079
|
-
if ((H > 0 && s < H ||
|
|
2073
|
+
const f = O(!1), o = O([]), a = O(null), m = P(() => d.value.length > 0 && d.value.length === b.value.length), _ = P(() => d.value.length > 0 && d.value.length < b.value.length), p = (y) => {
|
|
2074
|
+
a.value = y.oldIndex;
|
|
2075
|
+
}, $ = (y) => {
|
|
2076
|
+
const s = y.newIndex;
|
|
2077
|
+
if (b.value.some((H) => H.fixed === "left" || H.fixed === "right" || H.fixed === !0)) {
|
|
2078
|
+
const H = b.value.filter((R) => R.fixed === "left").length, x = b.value.length - b.value.filter((R) => R.fixed === "right").length;
|
|
2079
|
+
if ((H > 0 && s < H || x < b.value.length && s >= x) && (Se.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")), a.value !== null)) {
|
|
2080
2080
|
const R = o.value.splice(s, 1)[0];
|
|
2081
2081
|
o.value.splice(a.value, 0, R);
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
a.value = null;
|
|
2085
|
-
},
|
|
2086
|
-
|
|
2085
|
+
}, I = (y) => {
|
|
2086
|
+
y.target.checked ? o.value.forEach((h) => h.checked = !0) : o.value.forEach((h) => {
|
|
2087
2087
|
h.dataIndex !== "action" && h.dataIndex !== "actions" && (h.checked = !1);
|
|
2088
2088
|
});
|
|
2089
2089
|
}, V = () => {
|
|
2090
|
-
|
|
2090
|
+
b.value = u.localColumns.map((s) => ({
|
|
2091
2091
|
...s,
|
|
2092
|
-
label: s.title && s.title.tag ?
|
|
2092
|
+
label: s.title && s.title.tag ? M(s.title) : s.title || s.title2,
|
|
2093
2093
|
value: s.dataIndex,
|
|
2094
2094
|
checked: s.checked || s.checked === void 0
|
|
2095
|
-
})), o.value = [...
|
|
2096
|
-
let
|
|
2097
|
-
|
|
2098
|
-
|
|
2095
|
+
})), o.value = [...b.value];
|
|
2096
|
+
let y = [];
|
|
2097
|
+
u.tableColumns.forEach(function(s) {
|
|
2098
|
+
y.push(s.dataIndex);
|
|
2099
2099
|
});
|
|
2100
|
-
},
|
|
2101
|
-
s ?
|
|
2102
|
-
},
|
|
2103
|
-
|
|
2104
|
-
},
|
|
2105
|
-
|
|
2100
|
+
}, w = (y, s) => {
|
|
2101
|
+
s ? y.checked = !0 : y.checked = !1;
|
|
2102
|
+
}, v = () => {
|
|
2103
|
+
b.value = [...o.value], l("on-get-columns", b.value), f.value = !1;
|
|
2104
|
+
}, k = () => {
|
|
2105
|
+
b.value = u.tableColumns.map((s) => ({
|
|
2106
2106
|
...s,
|
|
2107
|
-
label: s.title && s.title.tag ?
|
|
2107
|
+
label: s.title && s.title.tag ? M(s.title) : s.title || s.title2,
|
|
2108
2108
|
value: s.dataIndex,
|
|
2109
2109
|
checked: s.checked || s.checked === void 0
|
|
2110
|
-
})), o.value = [...
|
|
2111
|
-
let
|
|
2112
|
-
|
|
2113
|
-
|
|
2110
|
+
})), o.value = [...b.value];
|
|
2111
|
+
let y = [];
|
|
2112
|
+
u.tableColumns.forEach(function(s) {
|
|
2113
|
+
y.push(s.dataIndex);
|
|
2114
2114
|
});
|
|
2115
|
-
},
|
|
2116
|
-
delete
|
|
2117
|
-
const s = o.value.findIndex((h) => h.value ===
|
|
2115
|
+
}, M = (y) => y.children[0].text, F = (y) => {
|
|
2116
|
+
delete y.fixed;
|
|
2117
|
+
const s = o.value.findIndex((h) => h.value === y.value);
|
|
2118
2118
|
if (s !== -1) {
|
|
2119
2119
|
let h = -1;
|
|
2120
2120
|
for (let H = 0; H < o.value.length; H++)
|
|
2121
2121
|
o.value[H].fixed === "left" && (h = H);
|
|
2122
2122
|
if (h !== -1 && s !== h + 1) {
|
|
2123
|
-
const H = [...o.value], [
|
|
2124
|
-
H.splice(h + 1, 0,
|
|
2123
|
+
const H = [...o.value], [x] = H.splice(s, 1);
|
|
2124
|
+
H.splice(h + 1, 0, x), o.value = H;
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
2127
|
-
}, C = (
|
|
2128
|
-
const s = o.value.findIndex((h) => h.value ===
|
|
2127
|
+
}, C = (y) => {
|
|
2128
|
+
const s = o.value.findIndex((h) => h.value === y.value);
|
|
2129
2129
|
if (s !== -1) {
|
|
2130
2130
|
let h = -1;
|
|
2131
2131
|
for (let ee = 0; ee < o.value.length; ee++)
|
|
2132
2132
|
o.value[ee].fixed === "left" && (h = ee);
|
|
2133
|
-
const H = [...o.value], [
|
|
2134
|
-
|
|
2133
|
+
const H = [...o.value], [x] = H.splice(s, 1);
|
|
2134
|
+
x.fixed = "left";
|
|
2135
2135
|
const R = h === -1 ? 0 : h + 1;
|
|
2136
|
-
H.splice(R, 0,
|
|
2136
|
+
H.splice(R, 0, x), o.value = H;
|
|
2137
2137
|
}
|
|
2138
2138
|
};
|
|
2139
2139
|
return oe(
|
|
2140
|
-
() =>
|
|
2140
|
+
() => u.tableColumns,
|
|
2141
2141
|
() => {
|
|
2142
|
-
|
|
2142
|
+
k();
|
|
2143
2143
|
},
|
|
2144
2144
|
{
|
|
2145
2145
|
immediate: !0,
|
|
2146
2146
|
deep: !0
|
|
2147
2147
|
}
|
|
2148
|
-
), (
|
|
2148
|
+
), (y, s) => {
|
|
2149
2149
|
const h = N("a-tooltip"), H = N("a-button");
|
|
2150
|
-
return
|
|
2151
|
-
|
|
2152
|
-
title:
|
|
2150
|
+
return i(), T("div", Uo, [
|
|
2151
|
+
S(g(Ut), {
|
|
2152
|
+
title: g(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),
|
|
2153
2153
|
trigger: "click",
|
|
2154
2154
|
placement: "leftTop",
|
|
2155
2155
|
overlayClassName: "column_setting_popover",
|
|
2156
|
-
visible:
|
|
2157
|
-
"onUpdate:visible": s[1] || (s[1] = (
|
|
2156
|
+
visible: f.value,
|
|
2157
|
+
"onUpdate:visible": s[1] || (s[1] = (x) => f.value = x)
|
|
2158
2158
|
}, {
|
|
2159
2159
|
content: r(() => [
|
|
2160
|
-
|
|
2160
|
+
S(g(He), {
|
|
2161
2161
|
modelValue: o.value,
|
|
2162
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2162
|
+
"onUpdate:modelValue": s[0] || (s[0] = (x) => o.value = x),
|
|
2163
2163
|
"item-key": "value",
|
|
2164
2164
|
class: "hb-lib-table-set-drag",
|
|
2165
2165
|
"ghost-class": "ghost",
|
|
2166
2166
|
animation: "200",
|
|
2167
2167
|
handle: ".drag-handle",
|
|
2168
|
-
onStart:
|
|
2168
|
+
onStart: p,
|
|
2169
2169
|
onEnd: $
|
|
2170
2170
|
}, {
|
|
2171
|
-
item: r(({ element:
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
checked:
|
|
2175
|
-
onChange: (R) => x
|
|
2171
|
+
item: r(({ element: x }) => [
|
|
2172
|
+
x.fixed !== "right" ? (i(), T("div", Vo, [
|
|
2173
|
+
S(g(Ie), {
|
|
2174
|
+
checked: x.checked,
|
|
2175
|
+
onChange: (R) => w(x, R.target.checked)
|
|
2176
2176
|
}, {
|
|
2177
2177
|
default: r(() => [
|
|
2178
|
-
A(L(
|
|
2178
|
+
A(L(x.label), 1)
|
|
2179
2179
|
]),
|
|
2180
2180
|
_: 2
|
|
2181
2181
|
}, 1032, ["checked", "onChange"]),
|
|
2182
|
-
|
|
2182
|
+
x.checked ? (i(), T("section", jo, [
|
|
2183
2183
|
c("span", {
|
|
2184
|
-
class: Y(
|
|
2184
|
+
class: Y(x.fixed ? "drag-hide" : "drag-handle")
|
|
2185
2185
|
}, "⋮⋮", 2),
|
|
2186
|
-
|
|
2186
|
+
x.fixed ? (i(), E(h, { key: 0 }, {
|
|
2187
2187
|
title: r(() => [
|
|
2188
|
-
A(L(
|
|
2188
|
+
A(L(g(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")), 1)
|
|
2189
2189
|
]),
|
|
2190
2190
|
default: r(() => [
|
|
2191
2191
|
c("span", {
|
|
2192
2192
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2193
|
-
onClick: (R) => F(
|
|
2193
|
+
onClick: (R) => F(x)
|
|
2194
2194
|
}, [...s[2] || (s[2] = [
|
|
2195
2195
|
c("svg", {
|
|
2196
2196
|
t: "1759048615600",
|
|
@@ -2212,14 +2212,14 @@ const Bo = {
|
|
|
2212
2212
|
]),
|
|
2213
2213
|
_: 2
|
|
2214
2214
|
}, 1024)) : z("", !0),
|
|
2215
|
-
|
|
2215
|
+
x.fixed ? z("", !0) : (i(), E(h, { key: 1 }, {
|
|
2216
2216
|
title: r(() => [
|
|
2217
|
-
A(L(
|
|
2217
|
+
A(L(g(n)("hbLibComp.hbLibListTableColumsSet.fix")), 1)
|
|
2218
2218
|
]),
|
|
2219
2219
|
default: r(() => [
|
|
2220
2220
|
c("span", {
|
|
2221
2221
|
class: "hb-lib-table-drag-item-act-btn",
|
|
2222
|
-
onClick: (R) => C(
|
|
2222
|
+
onClick: (R) => C(x)
|
|
2223
2223
|
}, [...s[3] || (s[3] = [
|
|
2224
2224
|
c("svg", {
|
|
2225
2225
|
t: "1759048735643",
|
|
@@ -2248,41 +2248,41 @@ const Bo = {
|
|
|
2248
2248
|
}, 8, ["modelValue"]),
|
|
2249
2249
|
c("div", qo, [
|
|
2250
2250
|
c("div", Ko, [
|
|
2251
|
-
|
|
2251
|
+
S(g(Ie), {
|
|
2252
2252
|
checked: m.value,
|
|
2253
2253
|
indeterminate: _.value,
|
|
2254
|
-
onChange:
|
|
2254
|
+
onChange: I
|
|
2255
2255
|
}, {
|
|
2256
2256
|
default: r(() => [
|
|
2257
|
-
A(L(
|
|
2257
|
+
A(L(g(n)("hbLibComp.hbLibListTableColumsSet.allSelect")), 1)
|
|
2258
2258
|
]),
|
|
2259
2259
|
_: 1
|
|
2260
2260
|
}, 8, ["checked", "indeterminate"])
|
|
2261
2261
|
]),
|
|
2262
|
-
|
|
2262
|
+
u.localColumns.length ? (i(), E(H, {
|
|
2263
2263
|
key: 0,
|
|
2264
2264
|
style: { "margin-right": "6px" },
|
|
2265
2265
|
onClick: V
|
|
2266
2266
|
}, {
|
|
2267
2267
|
default: r(() => [
|
|
2268
|
-
A(L(
|
|
2268
|
+
A(L(g(n)("hbLibComp.hbLibListTableColumsSet.reset")), 1)
|
|
2269
2269
|
]),
|
|
2270
2270
|
_: 1
|
|
2271
2271
|
})) : z("", !0),
|
|
2272
|
-
|
|
2273
|
-
onClick:
|
|
2272
|
+
S(H, {
|
|
2273
|
+
onClick: v,
|
|
2274
2274
|
type: "primary"
|
|
2275
2275
|
}, {
|
|
2276
2276
|
default: r(() => [
|
|
2277
|
-
A(L(
|
|
2277
|
+
A(L(g(n)("hbLibComp.hbLibListTableColumsSet.confirm")), 1)
|
|
2278
2278
|
]),
|
|
2279
2279
|
_: 1
|
|
2280
2280
|
})
|
|
2281
2281
|
])
|
|
2282
2282
|
]),
|
|
2283
2283
|
default: r(() => [
|
|
2284
|
-
|
|
2285
|
-
title:
|
|
2284
|
+
S(h, {
|
|
2285
|
+
title: g(n)("hbLibComp.hbLibListTableColumsSet.title"),
|
|
2286
2286
|
placement: "leftTop"
|
|
2287
2287
|
}, {
|
|
2288
2288
|
default: r(() => [...s[4] || (s[4] = [
|
|
@@ -2321,7 +2321,7 @@ const Bo = {
|
|
|
2321
2321
|
}), Go = /* @__PURE__ */ X(Jo, [["__scopeId", "data-v-07a63550"]]), Qo = ae(Go), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2322
2322
|
__proto__: null,
|
|
2323
2323
|
HbLibFormItemFilterModal: sl,
|
|
2324
|
-
HbLibListBtnsAct:
|
|
2324
|
+
HbLibListBtnsAct: Tl,
|
|
2325
2325
|
HbLibListForm: ul,
|
|
2326
2326
|
HbLibListMultiSelect: jl,
|
|
2327
2327
|
HbLibListPageAct: yl,
|
|
@@ -2348,54 +2348,54 @@ const Bo = {
|
|
|
2348
2348
|
}),
|
|
2349
2349
|
emits: ["update:value"],
|
|
2350
2350
|
setup(e, { expose: t }) {
|
|
2351
|
-
const l = e,
|
|
2352
|
-
const
|
|
2351
|
+
const l = e, n = Ot(), u = P(() => {
|
|
2352
|
+
const I = n, V = I.dropdownClassName;
|
|
2353
2353
|
return {
|
|
2354
|
-
...
|
|
2354
|
+
...I,
|
|
2355
2355
|
dropdownClassName: V ?? "hb_lib_form_tooltip_select__dropdown"
|
|
2356
2356
|
};
|
|
2357
|
-
}),
|
|
2357
|
+
}), b = O(), d = Ct(e, "value"), f = P(() => l.options ?? []), o = P(() => ({
|
|
2358
2358
|
maxWidth: typeof l.tooltipMaxWidth == "number" ? `${l.tooltipMaxWidth}px` : l.tooltipMaxWidth
|
|
2359
|
-
})), a = (
|
|
2359
|
+
})), a = (I) => I.tooltip ?? I.label, m = (I) => I.key ?? I.label, _ = (I) => !!(l.enableTooltip && a(I));
|
|
2360
2360
|
return t({
|
|
2361
2361
|
focus: () => {
|
|
2362
|
-
|
|
2362
|
+
b.value?.focus?.();
|
|
2363
2363
|
},
|
|
2364
2364
|
blur: () => {
|
|
2365
|
-
|
|
2365
|
+
b.value?.blur?.();
|
|
2366
2366
|
},
|
|
2367
|
-
selectRef:
|
|
2368
|
-
}), (
|
|
2367
|
+
selectRef: b
|
|
2368
|
+
}), (I, V) => (i(), E(g(Ye), le({
|
|
2369
2369
|
ref_key: "selectRef",
|
|
2370
|
-
ref:
|
|
2370
|
+
ref: b,
|
|
2371
2371
|
class: "hb_lib_form_tooltip_select"
|
|
2372
|
-
},
|
|
2372
|
+
}, u.value, {
|
|
2373
2373
|
value: d.value,
|
|
2374
|
-
"onUpdate:value": V[0] || (V[0] = (
|
|
2374
|
+
"onUpdate:value": V[0] || (V[0] = (w) => d.value = w)
|
|
2375
2375
|
}), {
|
|
2376
2376
|
default: r(() => [
|
|
2377
|
-
|
|
2378
|
-
key: m(
|
|
2379
|
-
value:
|
|
2380
|
-
disabled:
|
|
2381
|
-
}, { ref_for: !0 },
|
|
2377
|
+
I.$slots.default ? j(I.$slots, "default", { key: 0 }, void 0, !0) : (i(!0), T(q, { key: 1 }, se(f.value, (w) => (i(), E(g(qe), le({
|
|
2378
|
+
key: m(w),
|
|
2379
|
+
value: w.value,
|
|
2380
|
+
disabled: w.disabled
|
|
2381
|
+
}, { ref_for: !0 }, w.optionProps), {
|
|
2382
2382
|
default: r(() => [
|
|
2383
|
-
_(
|
|
2383
|
+
_(w) ? (i(), E(g($e), {
|
|
2384
2384
|
key: 0,
|
|
2385
|
-
title: a(
|
|
2385
|
+
title: a(w),
|
|
2386
2386
|
placement: l.tooltipPlacement,
|
|
2387
2387
|
overlayStyle: o.value
|
|
2388
2388
|
}, {
|
|
2389
2389
|
default: r(() => [
|
|
2390
2390
|
c("span", {
|
|
2391
2391
|
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": l.enableEllipsis }])
|
|
2392
|
-
}, L(
|
|
2392
|
+
}, L(w.label), 3)
|
|
2393
2393
|
]),
|
|
2394
2394
|
_: 2
|
|
2395
|
-
}, 1032, ["title", "placement", "overlayStyle"])) : (
|
|
2395
|
+
}, 1032, ["title", "placement", "overlayStyle"])) : (i(), T("span", {
|
|
2396
2396
|
key: 1,
|
|
2397
2397
|
class: Y(["hb_lib_form_tooltip_select__option", { "is-ellipsis": l.enableEllipsis }])
|
|
2398
|
-
}, L(
|
|
2398
|
+
}, L(w.label), 3))
|
|
2399
2399
|
]),
|
|
2400
2400
|
_: 2
|
|
2401
2401
|
}, 1040, ["value", "disabled"]))), 128))
|
|
@@ -2425,24 +2425,24 @@ const Bo = {
|
|
|
2425
2425
|
beforeSubmit: {}
|
|
2426
2426
|
},
|
|
2427
2427
|
setup(e, { expose: t }) {
|
|
2428
|
-
const { t: l } = fe(),
|
|
2428
|
+
const { t: l } = fe(), n = O(), u = e, b = O(!1), d = Ae({
|
|
2429
2429
|
fileList: [],
|
|
2430
2430
|
visible: !1
|
|
2431
|
-
}),
|
|
2432
|
-
if (
|
|
2431
|
+
}), f = (p) => {
|
|
2432
|
+
if (p == null)
|
|
2433
2433
|
return;
|
|
2434
|
-
const $ = d.fileList.indexOf(
|
|
2434
|
+
const $ = d.fileList.indexOf(p);
|
|
2435
2435
|
if ($ !== -1) {
|
|
2436
|
-
const
|
|
2437
|
-
|
|
2436
|
+
const I = d.fileList.slice();
|
|
2437
|
+
I.splice($, 1), d.fileList = I;
|
|
2438
2438
|
}
|
|
2439
2439
|
}, o = () => {
|
|
2440
|
-
d.visible = !1, d.fileList = [],
|
|
2441
|
-
}, a = (
|
|
2442
|
-
|
|
2443
|
-
|
|
2440
|
+
d.visible = !1, d.fileList = [], b.value = !1;
|
|
2441
|
+
}, a = (p) => (d.fileList = [p], u.beforeUpload ? u.beforeUpload(p) : !1), m = () => {
|
|
2442
|
+
n.value.validateFields().then(() => {
|
|
2443
|
+
u.beforeSubmit && (b.value = !0, u.beforeSubmit(d.fileList).then((p) => {
|
|
2444
2444
|
}).finally(() => {
|
|
2445
|
-
|
|
2445
|
+
b.value = !1;
|
|
2446
2446
|
}));
|
|
2447
2447
|
});
|
|
2448
2448
|
}, _ = () => {
|
|
@@ -2452,51 +2452,51 @@ const Bo = {
|
|
|
2452
2452
|
handleCancel: o,
|
|
2453
2453
|
openModal: _,
|
|
2454
2454
|
// 注意这里如果要想直接导出的数据是响应式 只能用ref来定义
|
|
2455
|
-
confirmLoading:
|
|
2456
|
-
}), (
|
|
2457
|
-
const
|
|
2458
|
-
return
|
|
2459
|
-
|
|
2460
|
-
title:
|
|
2455
|
+
confirmLoading: b
|
|
2456
|
+
}), (p, $) => {
|
|
2457
|
+
const I = N("a-upload-dragger"), V = N("a-form-item"), w = N("a-form"), v = N("a-modal"), k = N("a-button");
|
|
2458
|
+
return i(), T(q, null, [
|
|
2459
|
+
S(v, le({
|
|
2460
|
+
title: u.title,
|
|
2461
2461
|
visible: d.visible,
|
|
2462
|
-
"onUpdate:visible": $[0] || ($[0] = (
|
|
2463
|
-
"confirm-loading":
|
|
2464
|
-
},
|
|
2462
|
+
"onUpdate:visible": $[0] || ($[0] = (M) => d.visible = M),
|
|
2463
|
+
"confirm-loading": b.value
|
|
2464
|
+
}, p.$attrs, {
|
|
2465
2465
|
onCancel: o,
|
|
2466
2466
|
onOk: m,
|
|
2467
|
-
width:
|
|
2467
|
+
width: u.modalWidth
|
|
2468
2468
|
}), {
|
|
2469
2469
|
default: r(() => [
|
|
2470
|
-
|
|
2470
|
+
S(w, {
|
|
2471
2471
|
ref_key: "modalFormRef",
|
|
2472
|
-
ref:
|
|
2472
|
+
ref: n,
|
|
2473
2473
|
model: d
|
|
2474
2474
|
}, {
|
|
2475
2475
|
default: r(() => [
|
|
2476
|
-
|
|
2476
|
+
S(V, {
|
|
2477
2477
|
name: "fileList",
|
|
2478
|
-
label:
|
|
2479
|
-
rules: [{ required:
|
|
2478
|
+
label: g(l)("hbLibComp.HbImportFile.fileLabel"),
|
|
2479
|
+
rules: [{ required: u.isRequired, message: g(l)("hbLibComp.HbImportFile.clickUp") }]
|
|
2480
2480
|
}, {
|
|
2481
2481
|
default: r(() => [
|
|
2482
|
-
|
|
2483
|
-
maxCount:
|
|
2484
|
-
multiple:
|
|
2485
|
-
accept:
|
|
2482
|
+
S(I, {
|
|
2483
|
+
maxCount: u.maxCount,
|
|
2484
|
+
multiple: u.multiple,
|
|
2485
|
+
accept: u.acceptFile,
|
|
2486
2486
|
name: "file",
|
|
2487
2487
|
fileList: d.fileList,
|
|
2488
|
-
onRemove:
|
|
2488
|
+
onRemove: f,
|
|
2489
2489
|
beforeUpload: a
|
|
2490
2490
|
}, {
|
|
2491
2491
|
default: r(() => [
|
|
2492
2492
|
c("p", oa, [
|
|
2493
|
-
|
|
2493
|
+
S(g(Jt), { style: { "font-size": "37px" } })
|
|
2494
2494
|
]),
|
|
2495
2495
|
c("p", aa, [
|
|
2496
|
-
A(L(
|
|
2497
|
-
c("span", na, L(
|
|
2496
|
+
A(L(g(l)("hbLibComp.HbImportFile.uploadText")), 1),
|
|
2497
|
+
c("span", na, L(g(l)("hbLibComp.HbImportFile.clickUp")), 1)
|
|
2498
2498
|
]),
|
|
2499
|
-
c("p", ia, L(
|
|
2499
|
+
c("p", ia, L(g(l)("hbLibComp.HbFileUploadModal.format")) + ": " + L(u.acceptFile), 1)
|
|
2500
2500
|
]),
|
|
2501
2501
|
_: 1
|
|
2502
2502
|
}, 8, ["maxCount", "multiple", "accept", "fileList"])
|
|
@@ -2506,17 +2506,17 @@ const Bo = {
|
|
|
2506
2506
|
]),
|
|
2507
2507
|
_: 1
|
|
2508
2508
|
}, 8, ["model"]),
|
|
2509
|
-
|
|
2509
|
+
u.templateUrl ? (i(), T("p", sa, [
|
|
2510
2510
|
c("a", {
|
|
2511
2511
|
download: "Import_number-template.xlsx",
|
|
2512
|
-
href:
|
|
2513
|
-
}, L(
|
|
2512
|
+
href: u.templateUrl
|
|
2513
|
+
}, L(g(l)("hbLibComp.HbImportFile.downloadTemplate")), 9, ra)
|
|
2514
2514
|
])) : z("", !0)
|
|
2515
2515
|
]),
|
|
2516
2516
|
_: 1
|
|
2517
2517
|
}, 16, ["title", "visible", "confirm-loading", "width"]),
|
|
2518
|
-
j(
|
|
2519
|
-
k
|
|
2518
|
+
j(p.$slots, "btn", {}, () => [
|
|
2519
|
+
S(k, {
|
|
2520
2520
|
onClick: _,
|
|
2521
2521
|
type: "primary"
|
|
2522
2522
|
}, {
|
|
@@ -2586,7 +2586,7 @@ const Bo = {
|
|
|
2586
2586
|
St(() => {
|
|
2587
2587
|
l.value = t.data;
|
|
2588
2588
|
});
|
|
2589
|
-
const
|
|
2589
|
+
const n = P(() => t.tooltipTitle || "复制"), u = P(() => t.copySuccessTip || "复制成功"), b = P(() => t.copyFailTip || "复制失败"), d = P(() => {
|
|
2590
2590
|
if (t.cpText) return t.cpText;
|
|
2591
2591
|
let o = "";
|
|
2592
2592
|
if (t.data)
|
|
@@ -2598,22 +2598,22 @@ const Bo = {
|
|
|
2598
2598
|
} else
|
|
2599
2599
|
t.K && (o = t.data[t.K]);
|
|
2600
2600
|
return o;
|
|
2601
|
-
}),
|
|
2601
|
+
}), f = () => {
|
|
2602
2602
|
navigator.clipboard.writeText(d.value).then(() => {
|
|
2603
|
-
Se.success(
|
|
2603
|
+
Se.success(u.value);
|
|
2604
2604
|
}).catch(() => {
|
|
2605
|
-
Se.error(
|
|
2605
|
+
Se.error(b.value);
|
|
2606
2606
|
});
|
|
2607
2607
|
};
|
|
2608
|
-
return (o, a) => d.value ? (
|
|
2608
|
+
return (o, a) => d.value ? (i(), E(g($e), {
|
|
2609
2609
|
key: 0,
|
|
2610
|
-
title:
|
|
2610
|
+
title: n.value
|
|
2611
2611
|
}, {
|
|
2612
2612
|
default: r(() => [
|
|
2613
2613
|
c("span", {
|
|
2614
2614
|
class: "hb-lib-copy-text-eyevue",
|
|
2615
2615
|
style: de({ ...o.cpStyle }),
|
|
2616
|
-
onClick:
|
|
2616
|
+
onClick: Fe(f, ["stop", "prevent"])
|
|
2617
2617
|
}, [...a[0] || (a[0] = [
|
|
2618
2618
|
c("svg", {
|
|
2619
2619
|
t: "1766643849597",
|
|
@@ -2691,62 +2691,62 @@ const Bo = {
|
|
|
2691
2691
|
props: ma,
|
|
2692
2692
|
emits: ["update:dragList", "handleDragStart", "handleDragEnd", "handleDragAdd", "handleDragRemove"],
|
|
2693
2693
|
setup(e, { emit: t }) {
|
|
2694
|
-
const l = e,
|
|
2694
|
+
const l = e, n = zt([]);
|
|
2695
2695
|
oe(
|
|
2696
2696
|
() => l.dragList,
|
|
2697
2697
|
(m) => {
|
|
2698
|
-
|
|
2698
|
+
n.value = m;
|
|
2699
2699
|
},
|
|
2700
2700
|
{
|
|
2701
2701
|
deep: !0,
|
|
2702
2702
|
immediate: !0
|
|
2703
2703
|
}
|
|
2704
2704
|
);
|
|
2705
|
-
const
|
|
2706
|
-
console.log("drag start", m),
|
|
2707
|
-
},
|
|
2708
|
-
console.log("drag end", m),
|
|
2705
|
+
const u = Ze("drag"), b = t, d = (m) => {
|
|
2706
|
+
console.log("drag start", m), b("handleDragStart", m);
|
|
2707
|
+
}, f = (m) => {
|
|
2708
|
+
console.log("drag end", m), b("handleDragEnd", m);
|
|
2709
2709
|
}, o = (m) => {
|
|
2710
|
-
console.log("drag add", m),
|
|
2710
|
+
console.log("drag add", m), b("handleDragAdd", m);
|
|
2711
2711
|
}, a = (m) => {
|
|
2712
|
-
console.log("drag remove", m),
|
|
2712
|
+
console.log("drag remove", m), b("handleDragRemove", m);
|
|
2713
2713
|
};
|
|
2714
|
-
return (m, _) => (
|
|
2715
|
-
class: Y(
|
|
2714
|
+
return (m, _) => (i(), T("div", {
|
|
2715
|
+
class: Y(g(u).b())
|
|
2716
2716
|
}, [
|
|
2717
|
-
m.childrenType == "component" ? (
|
|
2717
|
+
m.childrenType == "component" ? (i(), E(g(He), le({
|
|
2718
2718
|
key: 0,
|
|
2719
|
-
modelValue:
|
|
2720
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2719
|
+
modelValue: n.value,
|
|
2720
|
+
"onUpdate:modelValue": _[0] || (_[0] = (p) => n.value = p),
|
|
2721
2721
|
"item-key": "key",
|
|
2722
2722
|
class: { [m.dragClass]: m.dragClass }
|
|
2723
2723
|
}, m.$attrs, {
|
|
2724
2724
|
"ghost-class": m.ghostClass,
|
|
2725
2725
|
onStart: d,
|
|
2726
|
-
onEnd:
|
|
2726
|
+
onEnd: f,
|
|
2727
2727
|
onAdd: o,
|
|
2728
2728
|
onRemove: a
|
|
2729
2729
|
}), {
|
|
2730
|
-
item: r(({ element:
|
|
2731
|
-
(
|
|
2730
|
+
item: r(({ element: p }) => [
|
|
2731
|
+
(i(), E(Tt(p.component)))
|
|
2732
2732
|
]),
|
|
2733
2733
|
_: 1
|
|
2734
|
-
}, 16, ["modelValue", "class", "ghost-class"])) : (
|
|
2734
|
+
}, 16, ["modelValue", "class", "ghost-class"])) : (i(), E(g(He), le({
|
|
2735
2735
|
key: 1,
|
|
2736
|
-
modelValue:
|
|
2737
|
-
"onUpdate:modelValue": _[1] || (_[1] = (
|
|
2736
|
+
modelValue: n.value,
|
|
2737
|
+
"onUpdate:modelValue": _[1] || (_[1] = (p) => n.value = p),
|
|
2738
2738
|
"item-key": "id",
|
|
2739
2739
|
class: { [m.dragClass]: m.dragClass }
|
|
2740
2740
|
}, m.$attrs, {
|
|
2741
2741
|
"ghost-class": m.ghostClass,
|
|
2742
2742
|
onStart: d,
|
|
2743
|
-
onEnd:
|
|
2743
|
+
onEnd: f,
|
|
2744
2744
|
onAdd: o,
|
|
2745
2745
|
onRemove: a
|
|
2746
2746
|
}), {
|
|
2747
|
-
item: r(({ element:
|
|
2747
|
+
item: r(({ element: p }) => [
|
|
2748
2748
|
c("div", null, [
|
|
2749
|
-
j(m.$slots, "default", { item:
|
|
2749
|
+
j(m.$slots, "default", { item: p }, void 0, !0)
|
|
2750
2750
|
])
|
|
2751
2751
|
]),
|
|
2752
2752
|
_: 3
|
|
@@ -2775,9 +2775,9 @@ const Bo = {
|
|
|
2775
2775
|
props: _a,
|
|
2776
2776
|
emits: ["change"],
|
|
2777
2777
|
setup(e, { expose: t, emit: l }) {
|
|
2778
|
-
const
|
|
2778
|
+
const n = e, u = l, b = O([]), d = O("");
|
|
2779
2779
|
oe(
|
|
2780
|
-
() =>
|
|
2780
|
+
() => n.menuItems,
|
|
2781
2781
|
(o) => {
|
|
2782
2782
|
let a = [];
|
|
2783
2783
|
Array.isArray(o) && o.length && o.forEach((m) => {
|
|
@@ -2786,32 +2786,32 @@ const Bo = {
|
|
|
2786
2786
|
{ label: `${m.label}升序`, value: `${m.value}`, sort: "Asc" },
|
|
2787
2787
|
{ label: `${m.label}降序`, value: `${m.value}`, sort: "Desc" }
|
|
2788
2788
|
];
|
|
2789
|
-
}),
|
|
2789
|
+
}), b.value = a;
|
|
2790
2790
|
},
|
|
2791
2791
|
{
|
|
2792
2792
|
deep: !0,
|
|
2793
2793
|
immediate: !0
|
|
2794
2794
|
}
|
|
2795
2795
|
);
|
|
2796
|
-
const
|
|
2797
|
-
d.value = o.value + o.sort,
|
|
2796
|
+
const f = (o) => {
|
|
2797
|
+
d.value = o.value + o.sort, n.getSort && n.getSort({
|
|
2798
2798
|
orderFeild: o.value,
|
|
2799
2799
|
orderBy: o.sort
|
|
2800
|
-
}),
|
|
2800
|
+
}), u("change", d);
|
|
2801
2801
|
};
|
|
2802
2802
|
return t({
|
|
2803
2803
|
currentActiveItem: d
|
|
2804
2804
|
}), (o, a) => {
|
|
2805
|
-
const m = N("a-menu-item"), _ = N("a-menu"),
|
|
2806
|
-
return
|
|
2807
|
-
trigger: [
|
|
2805
|
+
const m = N("a-menu-item"), _ = N("a-menu"), p = N("a-dropdown");
|
|
2806
|
+
return i(), E(p, {
|
|
2807
|
+
trigger: [n.triggerWay]
|
|
2808
2808
|
}, {
|
|
2809
2809
|
overlay: r(() => [
|
|
2810
|
-
|
|
2810
|
+
S(_, null, {
|
|
2811
2811
|
default: r(() => [
|
|
2812
|
-
(
|
|
2812
|
+
(i(!0), T(q, null, se(b.value, ($) => (i(), E(m, {
|
|
2813
2813
|
key: $.value + $.sort,
|
|
2814
|
-
onClick: (
|
|
2814
|
+
onClick: (I) => f($)
|
|
2815
2815
|
}, {
|
|
2816
2816
|
default: r(() => [
|
|
2817
2817
|
c("span", {
|
|
@@ -2827,11 +2827,11 @@ const Bo = {
|
|
|
2827
2827
|
default: r(() => [
|
|
2828
2828
|
c("span", {
|
|
2829
2829
|
class: "ant-dropdown-link",
|
|
2830
|
-
onClick: a[0] || (a[0] =
|
|
2830
|
+
onClick: a[0] || (a[0] = Fe(() => {
|
|
2831
2831
|
}, ["prevent"]))
|
|
2832
2832
|
}, [
|
|
2833
|
-
A(L(
|
|
2834
|
-
|
|
2833
|
+
A(L(n.colText) + " ", 1),
|
|
2834
|
+
S(g(Ke))
|
|
2835
2835
|
])
|
|
2836
2836
|
]),
|
|
2837
2837
|
_: 1
|
|
@@ -2867,19 +2867,23 @@ const Bo = {
|
|
|
2867
2867
|
},
|
|
2868
2868
|
HbLibDetailBox: {
|
|
2869
2869
|
descLabelWidth: 150,
|
|
2870
|
-
descValueWidth: 200
|
|
2870
|
+
descValueWidth: 200,
|
|
2871
|
+
needSetDesDefault: !0,
|
|
2872
|
+
desDefault: "-",
|
|
2873
|
+
setDefaultValueTimeOut: 600
|
|
2871
2874
|
}
|
|
2872
|
-
},
|
|
2875
|
+
}, Ta = { class: "hb_ui_config" }, wa = /* @__PURE__ */ Q({
|
|
2876
|
+
name: "HbUiConfig",
|
|
2873
2877
|
__name: "hbUiConfig",
|
|
2874
2878
|
props: {
|
|
2875
2879
|
config: {}
|
|
2876
2880
|
},
|
|
2877
2881
|
setup(e) {
|
|
2878
|
-
return Lt(Mt, Et({ ...Sa, ...e.config })), (l,
|
|
2882
|
+
return Lt(Mt, Et({ ...Sa, ...e.config })), (l, n) => (i(), T("div", Ta, [
|
|
2879
2883
|
j(l.$slots, "default")
|
|
2880
2884
|
]));
|
|
2881
2885
|
}
|
|
2882
|
-
}), Mt = Symbol("GLOBAL_CONFIG_KEY"), xa = ae(
|
|
2886
|
+
}), Mt = Symbol("GLOBAL_CONFIG_KEY"), xa = ae(wa), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2883
2887
|
__proto__: null,
|
|
2884
2888
|
HbLibCopy: It,
|
|
2885
2889
|
HbLibFuncCompDrag: ya,
|
|
@@ -2905,19 +2909,19 @@ const Bo = {
|
|
|
2905
2909
|
},
|
|
2906
2910
|
emits: ["update:visible"],
|
|
2907
2911
|
setup(e, { expose: t, emit: l }) {
|
|
2908
|
-
const { t:
|
|
2912
|
+
const { t: n } = fe(), u = e, b = [
|
|
2909
2913
|
{
|
|
2910
|
-
title:
|
|
2914
|
+
title: n("hbLibComp.HbLogModal.operator"),
|
|
2911
2915
|
dataIndex: "userName",
|
|
2912
2916
|
width: "15%"
|
|
2913
2917
|
},
|
|
2914
2918
|
{
|
|
2915
|
-
title:
|
|
2919
|
+
title: n("hbLibComp.HbLogModal.operateTime"),
|
|
2916
2920
|
dataIndex: "operateTime",
|
|
2917
2921
|
width: "25%"
|
|
2918
2922
|
},
|
|
2919
|
-
{ title:
|
|
2920
|
-
], d = P(() =>
|
|
2923
|
+
{ title: n("hbLibComp.HbLogModal.operateContent"), dataIndex: "remark" }
|
|
2924
|
+
], d = P(() => u.columns || b), f = P(() => u.title || n("hbLibComp.HbLogModal.operateLogs")), o = O(!1), a = Ae({
|
|
2921
2925
|
list: [],
|
|
2922
2926
|
pagination: {
|
|
2923
2927
|
current: 1,
|
|
@@ -2925,16 +2929,16 @@ const Bo = {
|
|
|
2925
2929
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
2926
2930
|
showQuickJumper: !0,
|
|
2927
2931
|
showSizeChanger: !0,
|
|
2928
|
-
showTotal: (
|
|
2932
|
+
showTotal: (w, v) => v[0] + "-" + v[1] + " 总共" + w + "页",
|
|
2929
2933
|
total: 0
|
|
2930
2934
|
}
|
|
2931
2935
|
});
|
|
2932
2936
|
oe(
|
|
2933
|
-
() =>
|
|
2934
|
-
(
|
|
2935
|
-
|
|
2937
|
+
() => u.pagination,
|
|
2938
|
+
(w) => {
|
|
2939
|
+
w && (a.pagination = {
|
|
2936
2940
|
...a.pagination,
|
|
2937
|
-
...
|
|
2941
|
+
...w
|
|
2938
2942
|
});
|
|
2939
2943
|
},
|
|
2940
2944
|
{
|
|
@@ -2943,51 +2947,51 @@ const Bo = {
|
|
|
2943
2947
|
}
|
|
2944
2948
|
);
|
|
2945
2949
|
const m = () => {
|
|
2946
|
-
const
|
|
2950
|
+
const w = {
|
|
2947
2951
|
pageIndex: a.pagination.current,
|
|
2948
2952
|
pageSize: a.pagination.pageSize,
|
|
2949
|
-
query:
|
|
2953
|
+
query: u.params
|
|
2950
2954
|
};
|
|
2951
|
-
|
|
2952
|
-
Number(
|
|
2955
|
+
u.getLogData && (o.value = !0, u.getLogData(w).then((v) => {
|
|
2956
|
+
Number(v.code) == 200 ? (a.pagination.total = Number(v.data.total), a.list = v.data[u.dataStr] || []) : Se.error(v.message);
|
|
2953
2957
|
}).finally(() => {
|
|
2954
2958
|
o.value = !1;
|
|
2955
2959
|
}));
|
|
2956
|
-
}, _ = (
|
|
2957
|
-
a.pagination.current =
|
|
2958
|
-
},
|
|
2960
|
+
}, _ = (w) => {
|
|
2961
|
+
a.pagination.current = w.current, a.pagination.pageSize = w.pageSize, m();
|
|
2962
|
+
}, p = () => {
|
|
2959
2963
|
a.list = [], V("update:visible", !1);
|
|
2960
2964
|
}, $ = () => {
|
|
2961
2965
|
V("update:visible", !0);
|
|
2962
|
-
},
|
|
2966
|
+
}, I = (w, v = "YYYY-MM-DD HH:mm:ss") => w ? Oe(w).format(v) : "", V = l;
|
|
2963
2967
|
return oe(
|
|
2964
|
-
() =>
|
|
2965
|
-
(
|
|
2966
|
-
|
|
2968
|
+
() => u.visible,
|
|
2969
|
+
(w) => {
|
|
2970
|
+
w && m();
|
|
2967
2971
|
}
|
|
2968
2972
|
), t({
|
|
2969
|
-
close:
|
|
2973
|
+
close: p,
|
|
2970
2974
|
loading: o
|
|
2971
|
-
}), (
|
|
2972
|
-
const
|
|
2973
|
-
return
|
|
2974
|
-
|
|
2975
|
+
}), (w, v) => {
|
|
2976
|
+
const k = N("a-tooltip"), M = N("HbLibCopy"), F = N("a-table"), C = N("a-button"), y = N("a-modal");
|
|
2977
|
+
return i(), T(q, null, [
|
|
2978
|
+
S(y, {
|
|
2975
2979
|
visible: e.visible,
|
|
2976
|
-
title:
|
|
2980
|
+
title: f.value,
|
|
2977
2981
|
width: e.width,
|
|
2978
2982
|
height: e.height,
|
|
2979
|
-
onCancel:
|
|
2983
|
+
onCancel: p
|
|
2980
2984
|
}, {
|
|
2981
2985
|
footer: r(() => [
|
|
2982
|
-
|
|
2986
|
+
S(C, { onClick: p }, {
|
|
2983
2987
|
default: r(() => [
|
|
2984
|
-
A(L(
|
|
2988
|
+
A(L(g(n)("hbLibComp.HbLogModal.close")), 1)
|
|
2985
2989
|
]),
|
|
2986
2990
|
_: 1
|
|
2987
2991
|
})
|
|
2988
2992
|
]),
|
|
2989
2993
|
default: r(() => [
|
|
2990
|
-
|
|
2994
|
+
S(F, {
|
|
2991
2995
|
bordered: "",
|
|
2992
2996
|
rowKey: "id",
|
|
2993
2997
|
columns: d.value,
|
|
@@ -2996,10 +3000,10 @@ const Bo = {
|
|
|
2996
3000
|
loading: o.value,
|
|
2997
3001
|
scroll: { y: e.scrollY },
|
|
2998
3002
|
onChange: _
|
|
2999
|
-
},
|
|
3003
|
+
}, Be({
|
|
3000
3004
|
bodyCell: r(({ column: s, record: h }) => [
|
|
3001
|
-
s && s.needTooltip ? (
|
|
3002
|
-
s.needTooltip ? (
|
|
3005
|
+
s && s.needTooltip ? (i(), T(q, { key: 0 }, [
|
|
3006
|
+
s.needTooltip ? (i(), E(k, { key: 0 }, {
|
|
3003
3007
|
title: r(() => [
|
|
3004
3008
|
A(L(h[s.dataIndex]), 1)
|
|
3005
3009
|
]),
|
|
@@ -3009,23 +3013,23 @@ const Bo = {
|
|
|
3009
3013
|
_: 2
|
|
3010
3014
|
}, 1024)) : z("", !0)
|
|
3011
3015
|
], 64)) : z("", !0),
|
|
3012
|
-
s && s.needCopy ? (
|
|
3016
|
+
s && s.needCopy ? (i(), T(q, { key: 1 }, [
|
|
3013
3017
|
c("div", Ha, L(h[s.dataIndex]), 1),
|
|
3014
|
-
|
|
3018
|
+
S(M, {
|
|
3015
3019
|
"cp-text": h[s.dataIndex],
|
|
3016
3020
|
style: { position: "relative" }
|
|
3017
3021
|
}, null, 8, ["cp-text"])
|
|
3018
3022
|
], 64)) : z("", !0),
|
|
3019
|
-
s && s.needFormat ? (
|
|
3020
|
-
A(L(
|
|
3023
|
+
s && s.needFormat ? (i(), T(q, { key: 2 }, [
|
|
3024
|
+
A(L(I(h[s.dataIndex], s.operateTime)), 1)
|
|
3021
3025
|
], 64)) : z("", !0)
|
|
3022
3026
|
]),
|
|
3023
3027
|
_: 2
|
|
3024
3028
|
}, [
|
|
3025
|
-
|
|
3029
|
+
w.$slots.headerCell ? {
|
|
3026
3030
|
name: "headerCell",
|
|
3027
3031
|
fn: r(({ column: s }) => [
|
|
3028
|
-
j(
|
|
3032
|
+
j(w.$slots, "headerCell", { column: s }, () => [
|
|
3029
3033
|
A(L(s.title), 1)
|
|
3030
3034
|
], !0)
|
|
3031
3035
|
]),
|
|
@@ -3035,8 +3039,8 @@ const Bo = {
|
|
|
3035
3039
|
]),
|
|
3036
3040
|
_: 3
|
|
3037
3041
|
}, 8, ["visible", "title", "width", "height"]),
|
|
3038
|
-
e.needBtn ? j(
|
|
3039
|
-
|
|
3042
|
+
e.needBtn ? j(w.$slots, "default", { key: 0 }, () => [
|
|
3043
|
+
S(C, { onClick: $ }, {
|
|
3040
3044
|
default: r(() => [
|
|
3041
3045
|
A(L(e.logBtnText), 1)
|
|
3042
3046
|
]),
|
|
@@ -3046,12 +3050,12 @@ const Bo = {
|
|
|
3046
3050
|
], 64);
|
|
3047
3051
|
};
|
|
3048
3052
|
}
|
|
3049
|
-
}), Ia = /* @__PURE__ */ X($a, [["__scopeId", "data-v-1eb2950e"]]), Ma = ae(Ia),
|
|
3053
|
+
}), Ia = /* @__PURE__ */ X($a, [["__scopeId", "data-v-1eb2950e"]]), Ma = ae(Ia), Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3050
3054
|
__proto__: null,
|
|
3051
3055
|
HbLibLogModal: Ma
|
|
3052
3056
|
}, Symbol.toStringTag, { value: "Module" })), _e = (e) => (e.install = (t) => {
|
|
3053
3057
|
t.component(e.name || "AnonymousComponent", e);
|
|
3054
|
-
}, e),
|
|
3058
|
+
}, e), Aa = { class: "hb_card_wrapper" }, Ba = { class: "hb_card" }, Oa = {
|
|
3055
3059
|
key: 0,
|
|
3056
3060
|
class: "hb_card_header"
|
|
3057
3061
|
}, za = { class: "hb_fix" }, Ea = { class: "hb_card_header-title" }, Pa = { class: "hb_card_header-action" }, Ra = { class: "hb_card_body" }, Na = /* @__PURE__ */ Q({
|
|
@@ -3081,12 +3085,12 @@ const Bo = {
|
|
|
3081
3085
|
}
|
|
3082
3086
|
},
|
|
3083
3087
|
setup(e) {
|
|
3084
|
-
return (t, l) => (
|
|
3088
|
+
return (t, l) => (i(), T("div", Aa, [
|
|
3085
3089
|
c("div", {
|
|
3086
3090
|
class: Y(e.isModal ? "modal__module-card" : "__module-card")
|
|
3087
3091
|
}, [
|
|
3088
3092
|
c("div", Ba, [
|
|
3089
|
-
e.cardTitle ? (
|
|
3093
|
+
e.cardTitle ? (i(), T("div", Oa, [
|
|
3090
3094
|
c("div", za, [
|
|
3091
3095
|
c("span", Ea, [
|
|
3092
3096
|
j(t.$slots, "cardTitle", {}, () => [
|
|
@@ -3127,42 +3131,42 @@ const Bo = {
|
|
|
3127
3131
|
containerSelector: {}
|
|
3128
3132
|
},
|
|
3129
3133
|
setup(e) {
|
|
3130
|
-
const t = e, l = O(""),
|
|
3134
|
+
const t = e, l = O(""), n = t.offsetTop ?? 160, u = P(() => t.anchors.filter((o) => typeof o.visible == "function" ? o.visible() : o.visible !== !1)), b = () => {
|
|
3131
3135
|
const o = t.containerSelector || "#subpackage_container";
|
|
3132
3136
|
return document.querySelector(o) || window;
|
|
3133
3137
|
}, d = (o) => {
|
|
3134
|
-
const a =
|
|
3138
|
+
const a = b(), m = o.target.startsWith("#") || o.target.startsWith(".") ? o.target : `#${o.target}`, _ = document.querySelector(m);
|
|
3135
3139
|
if (!_) return;
|
|
3136
|
-
let
|
|
3137
|
-
a instanceof HTMLElement && (
|
|
3138
|
-
},
|
|
3139
|
-
const o =
|
|
3140
|
+
let p = _.offsetTop;
|
|
3141
|
+
a instanceof HTMLElement && (p -= a.offsetTop), p -= n, a instanceof Window ? window.scrollTo({ top: p, behavior: "smooth" }) : a.scrollTo({ top: p, behavior: "smooth" }), l.value = o.target;
|
|
3142
|
+
}, f = () => {
|
|
3143
|
+
const o = b();
|
|
3140
3144
|
let a = 0;
|
|
3141
|
-
o instanceof Window ? a = window.scrollY +
|
|
3142
|
-
let m =
|
|
3143
|
-
for (const _ of
|
|
3144
|
-
const
|
|
3145
|
+
o instanceof Window ? a = window.scrollY + n + 5 : a = o.scrollTop + n + 5;
|
|
3146
|
+
let m = u.value[0]?.target || "";
|
|
3147
|
+
for (const _ of u.value) {
|
|
3148
|
+
const p = _.target.startsWith("#") || _.target.startsWith(".") ? _.target : `#${_.target}`, $ = document.querySelector(p);
|
|
3145
3149
|
if (!$) continue;
|
|
3146
|
-
let
|
|
3147
|
-
o instanceof HTMLElement && (
|
|
3150
|
+
let I = $.offsetTop;
|
|
3151
|
+
o instanceof HTMLElement && (I -= o.offsetTop), a >= I && (m = _.target);
|
|
3148
3152
|
}
|
|
3149
3153
|
l.value = m;
|
|
3150
3154
|
};
|
|
3151
|
-
return
|
|
3152
|
-
|
|
3155
|
+
return pe(() => {
|
|
3156
|
+
b().addEventListener("scroll", f), f();
|
|
3153
3157
|
}), Ge(() => {
|
|
3154
|
-
|
|
3155
|
-
}), (o, a) => (
|
|
3158
|
+
b().removeEventListener("scroll", f);
|
|
3159
|
+
}), (o, a) => (i(), T("div", {
|
|
3156
3160
|
class: "anchors",
|
|
3157
|
-
style: de({ top: `${
|
|
3161
|
+
style: de({ top: `${g(n)}px` })
|
|
3158
3162
|
}, [
|
|
3159
|
-
(
|
|
3163
|
+
(i(!0), T(q, null, se(u.value, (m, _) => (i(), T("div", {
|
|
3160
3164
|
key: m.target,
|
|
3161
3165
|
class: Y(["anchor-item", { isActive: l.value === m.target }]),
|
|
3162
|
-
onClick: (
|
|
3166
|
+
onClick: (p) => d(m)
|
|
3163
3167
|
}, [
|
|
3164
3168
|
c("div", Wa, [
|
|
3165
|
-
_ !==
|
|
3169
|
+
_ !== u.value.length - 1 ? (i(), T("div", Ya)) : z("", !0),
|
|
3166
3170
|
a[0] || (a[0] = c("div", { class: "circle" }, null, -1))
|
|
3167
3171
|
]),
|
|
3168
3172
|
c("span", {
|
|
@@ -3244,86 +3248,101 @@ const Bo = {
|
|
|
3244
3248
|
}
|
|
3245
3249
|
},
|
|
3246
3250
|
setup(e) {
|
|
3247
|
-
const { t } = fe(), l = e,
|
|
3251
|
+
const { t } = fe(), l = e, n = me(Mt), u = () => {
|
|
3248
3252
|
l.backFn ? l.backFn() : window.history.back();
|
|
3249
|
-
},
|
|
3250
|
-
const
|
|
3253
|
+
}, b = P(() => {
|
|
3254
|
+
const I = {};
|
|
3251
3255
|
return l.needFixWidth ? {
|
|
3252
|
-
hb_need_set_desc_label_width: l.descLabelWidth ||
|
|
3253
|
-
hb_need_set_desc_value_width: l.descValueWidth ||
|
|
3254
|
-
} :
|
|
3255
|
-
}), d = () => document.querySelector(l.container),
|
|
3256
|
-
|
|
3256
|
+
hb_need_set_desc_label_width: l.descLabelWidth || n?.HbLibDetailBox?.descLabelWidth,
|
|
3257
|
+
hb_need_set_desc_value_width: l.descValueWidth || n?.HbLibDetailBox?.descValueWidth
|
|
3258
|
+
} : I;
|
|
3259
|
+
}), d = () => document.querySelector(l.container), f = O(!1), o = O(null), { top: a } = Qt(o), m = P(d), { y: _ } = Zt(m);
|
|
3260
|
+
oe(
|
|
3257
3261
|
_,
|
|
3258
|
-
(
|
|
3259
|
-
|
|
3262
|
+
(I) => {
|
|
3263
|
+
f.value = I > a.value;
|
|
3260
3264
|
},
|
|
3261
3265
|
{ immediate: !0 }
|
|
3262
|
-
)
|
|
3263
|
-
|
|
3264
|
-
|
|
3266
|
+
);
|
|
3267
|
+
const p = (I) => {
|
|
3268
|
+
document.querySelectorAll(".hb_card_body").forEach((w) => {
|
|
3269
|
+
w.querySelectorAll(".ant-descriptions-item-content span").forEach((k) => {
|
|
3270
|
+
k.textContent?.trim() || (k.textContent = I);
|
|
3271
|
+
});
|
|
3272
|
+
});
|
|
3273
|
+
};
|
|
3274
|
+
let $ = null;
|
|
3275
|
+
return pe(() => {
|
|
3276
|
+
n?.HbLibDetailBox?.needSetDesDefault && ($ = setTimeout(() => {
|
|
3277
|
+
p(n?.HbLibDetailBox?.desDefault);
|
|
3278
|
+
}, n?.HbLibDetailBox?.setValuetimeOut));
|
|
3279
|
+
}), Te(() => {
|
|
3280
|
+
$ && clearTimeout($);
|
|
3281
|
+
}), (I, V) => {
|
|
3282
|
+
const w = N("RollbackOutlined"), v = N("a-divider"), k = N("a-spin");
|
|
3283
|
+
return i(), E(k, { spinning: e.spinning }, {
|
|
3265
3284
|
default: r(() => [
|
|
3266
3285
|
c("div", {
|
|
3267
|
-
class: Y(["hb_detail_wrapper",
|
|
3286
|
+
class: Y(["hb_detail_wrapper", b.value]),
|
|
3268
3287
|
style: de({
|
|
3269
|
-
"--hb-detail-desc-label-width":
|
|
3270
|
-
"--hb-detail-desc-value-width":
|
|
3288
|
+
"--hb-detail-desc-label-width": b.value?.hb_need_set_desc_label_width + "px",
|
|
3289
|
+
"--hb-detail-desc-value-width": b.value?.hb_need_set_desc_value_width + "px"
|
|
3271
3290
|
})
|
|
3272
3291
|
}, [
|
|
3273
|
-
e.needTotalInfoBox ? (
|
|
3292
|
+
e.needTotalInfoBox ? (i(), T("div", {
|
|
3274
3293
|
key: 0,
|
|
3275
|
-
class: Y(["hb_detail_top_act_sticky",
|
|
3294
|
+
class: Y(["hb_detail_top_act_sticky", f.value ? "can_show" : ""])
|
|
3276
3295
|
}, [
|
|
3277
3296
|
c("div", Qa, [
|
|
3278
|
-
|
|
3297
|
+
S(w, { style: { color: "#ff5000" } }),
|
|
3279
3298
|
c("a", {
|
|
3280
3299
|
href: "javascript:;",
|
|
3281
3300
|
class: "ml6",
|
|
3282
|
-
onClick:
|
|
3283
|
-
}, L(
|
|
3284
|
-
|
|
3301
|
+
onClick: u
|
|
3302
|
+
}, L(g(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3303
|
+
S(v, { type: "vertical" }),
|
|
3285
3304
|
c("span", null, L(e.stickyTitle), 1)
|
|
3286
3305
|
]),
|
|
3287
|
-
|
|
3306
|
+
V[0] || (V[0] = c("div", { class: "hb_detail_top_act_right" }, null, -1))
|
|
3288
3307
|
], 2)) : z("", !0),
|
|
3289
|
-
e.needTotalInfoBox ? (
|
|
3308
|
+
e.needTotalInfoBox ? (i(), T("div", Za, [
|
|
3290
3309
|
c("div", Xa, [
|
|
3291
|
-
|
|
3310
|
+
S(w),
|
|
3292
3311
|
c("a", {
|
|
3293
3312
|
href: "javascript:;",
|
|
3294
3313
|
class: "ml6",
|
|
3295
|
-
onClick:
|
|
3296
|
-
}, L(
|
|
3297
|
-
|
|
3314
|
+
onClick: u
|
|
3315
|
+
}, L(g(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3316
|
+
S(v, { type: "vertical" }),
|
|
3298
3317
|
c("span", null, L(e.stickyTitle), 1)
|
|
3299
3318
|
]),
|
|
3300
|
-
e.needTotalInfoBox ? (
|
|
3319
|
+
e.needTotalInfoBox ? (i(), T("div", en, [
|
|
3301
3320
|
c("aside", tn, [
|
|
3302
|
-
j(
|
|
3321
|
+
j(I.$slots, "totalInfoLeft", {}, () => [
|
|
3303
3322
|
c("div", ln, L(e.totalInfo.totalInfoTitle), 1),
|
|
3304
|
-
e.totalInfo.totalInfoSubTitle1 ? (
|
|
3323
|
+
e.totalInfo.totalInfoSubTitle1 ? (i(), T("div", on, [
|
|
3305
3324
|
c("span", an, L(e.totalInfo.totalInfoSubTitle1) + L(e.totalInfo.totalInfoSubVal1), 1),
|
|
3306
3325
|
c("span", null, L(e.totalInfo.totalInfoSubTitle2) + L(e.totalInfo.totalInfoSubVal2), 1)
|
|
3307
3326
|
])) : z("", !0)
|
|
3308
3327
|
], !0)
|
|
3309
3328
|
]),
|
|
3310
3329
|
c("aside", nn, [
|
|
3311
|
-
j(
|
|
3330
|
+
j(I.$slots, "totalInfoRight", {}, void 0, !0)
|
|
3312
3331
|
])
|
|
3313
3332
|
])) : z("", !0)
|
|
3314
3333
|
])) : z("", !0),
|
|
3315
3334
|
c("div", sn, [
|
|
3316
3335
|
c("div", rn, [
|
|
3317
|
-
j(
|
|
3336
|
+
j(I.$slots, "detailContent", {}, void 0, !0)
|
|
3318
3337
|
])
|
|
3319
3338
|
]),
|
|
3320
|
-
|
|
3339
|
+
S(g(wt), {
|
|
3321
3340
|
target: d,
|
|
3322
3341
|
style: de({ bottom: e.backTopBottom + "px" })
|
|
3323
3342
|
}, {
|
|
3324
3343
|
default: r(() => [
|
|
3325
3344
|
c("div", cn, [
|
|
3326
|
-
|
|
3345
|
+
S(g(xt))
|
|
3327
3346
|
])
|
|
3328
3347
|
]),
|
|
3329
3348
|
_: 1
|
|
@@ -3334,7 +3353,7 @@ const Bo = {
|
|
|
3334
3353
|
}, 8, ["spinning"]);
|
|
3335
3354
|
};
|
|
3336
3355
|
}
|
|
3337
|
-
}), un = /* @__PURE__ */ X(dn, [["__scopeId", "data-v-
|
|
3356
|
+
}), un = /* @__PURE__ */ X(dn, [["__scopeId", "data-v-dc66a005"]]), fn = _e(un), bn = /* @__PURE__ */ Q({
|
|
3338
3357
|
name: "HbLibFooterBar",
|
|
3339
3358
|
__name: "HbLibFooterBar",
|
|
3340
3359
|
props: {
|
|
@@ -3366,28 +3385,28 @@ const Bo = {
|
|
|
3366
3385
|
}
|
|
3367
3386
|
},
|
|
3368
3387
|
setup(e) {
|
|
3369
|
-
const t = e, l = P(() => t.buttons.filter((
|
|
3388
|
+
const t = e, l = P(() => t.buttons.filter((f) => f.condition !== void 0 ? f.condition : !0)), n = O(0), u = (f) => {
|
|
3370
3389
|
let o = 0;
|
|
3371
|
-
return (Array.isArray(
|
|
3390
|
+
return (Array.isArray(f) ? f : [f]).forEach((m) => {
|
|
3372
3391
|
let _ = [];
|
|
3373
3392
|
if (m.startsWith("#")) {
|
|
3374
|
-
const
|
|
3375
|
-
|
|
3393
|
+
const p = document.getElementById(m.slice(1));
|
|
3394
|
+
p && _.push(p);
|
|
3376
3395
|
} else
|
|
3377
3396
|
_ = Array.from(document.getElementsByClassName(m));
|
|
3378
|
-
_.forEach((
|
|
3379
|
-
o +=
|
|
3397
|
+
_.forEach((p) => {
|
|
3398
|
+
o += p.offsetWidth || 0;
|
|
3380
3399
|
});
|
|
3381
3400
|
}), o;
|
|
3382
|
-
},
|
|
3383
|
-
t.leftElements && (
|
|
3401
|
+
}, b = () => {
|
|
3402
|
+
t.leftElements && (n.value = u(t.leftElements) + 1);
|
|
3384
3403
|
};
|
|
3385
3404
|
let d = null;
|
|
3386
|
-
return
|
|
3387
|
-
const
|
|
3388
|
-
|
|
3389
|
-
}),
|
|
3390
|
-
|
|
3405
|
+
return pe(() => {
|
|
3406
|
+
const f = t.getContainer();
|
|
3407
|
+
f !== window && f instanceof HTMLElement && f.addEventListener("scroll", () => {
|
|
3408
|
+
}), b(), d = new MutationObserver(() => {
|
|
3409
|
+
b();
|
|
3391
3410
|
});
|
|
3392
3411
|
const o = document.body;
|
|
3393
3412
|
d.observe(o, {
|
|
@@ -3400,13 +3419,13 @@ const Bo = {
|
|
|
3400
3419
|
});
|
|
3401
3420
|
}), Ge(() => {
|
|
3402
3421
|
d && d.disconnect();
|
|
3403
|
-
}), (
|
|
3404
|
-
const a = N("a-button"), m = N("a-space"), _ = N("a-affix"),
|
|
3405
|
-
return
|
|
3422
|
+
}), (f, o) => {
|
|
3423
|
+
const a = N("a-button"), m = N("a-space"), _ = N("a-affix"), p = kt("has");
|
|
3424
|
+
return i(), T("div", {
|
|
3406
3425
|
class: "footer-affix-wrapper",
|
|
3407
|
-
style: de({ "--pageHeaderOrFonterLeft":
|
|
3426
|
+
style: de({ "--pageHeaderOrFonterLeft": n.value + "px" })
|
|
3408
3427
|
}, [
|
|
3409
|
-
|
|
3428
|
+
S(_, {
|
|
3410
3429
|
"offset-bottom": 0,
|
|
3411
3430
|
target: e.getContainer,
|
|
3412
3431
|
style: { width: "100%" }
|
|
@@ -3419,9 +3438,9 @@ const Bo = {
|
|
|
3419
3438
|
page_footer_btn_right: e.placeRight
|
|
3420
3439
|
})
|
|
3421
3440
|
}, [
|
|
3422
|
-
|
|
3441
|
+
S(m, null, {
|
|
3423
3442
|
default: r(() => [
|
|
3424
|
-
(
|
|
3443
|
+
(i(!0), T(q, null, se(l.value, ($) => ue((i(), E(a, {
|
|
3425
3444
|
key: $.key,
|
|
3426
3445
|
type: $.type || "default",
|
|
3427
3446
|
danger: $.danger,
|
|
@@ -3435,7 +3454,7 @@ const Bo = {
|
|
|
3435
3454
|
]),
|
|
3436
3455
|
_: 2
|
|
3437
3456
|
}, 1032, ["type", "danger", "loading", "disabled", "onClick"])), [
|
|
3438
|
-
[
|
|
3457
|
+
[p, $.permissionsTag || null]
|
|
3439
3458
|
])), 128))
|
|
3440
3459
|
]),
|
|
3441
3460
|
_: 1
|
|
@@ -3489,54 +3508,54 @@ const Bo = {
|
|
|
3489
3508
|
},
|
|
3490
3509
|
emits: ["ok", "cancel"],
|
|
3491
3510
|
setup(e, { expose: t, emit: l }) {
|
|
3492
|
-
const
|
|
3511
|
+
const n = l, u = e, b = O(!1), d = O(null), f = P(() => ({ top: "10px", ...u.modalStyle })), o = P(() => ({ overflow: "hidden", ...u.modalStyle })), a = P(() => ({
|
|
3493
3512
|
maxHeight: "calc(100vh - 120px)",
|
|
3494
3513
|
overflowY: "auto",
|
|
3495
3514
|
padding: "0 6px",
|
|
3496
|
-
...
|
|
3497
|
-
})), { x: m, y: _, isDragging:
|
|
3515
|
+
...u.bodyStyle
|
|
3516
|
+
})), { x: m, y: _, isDragging: p } = Xt(d), $ = O(0), I = O(0), V = O(!1), w = O(0), v = O(0), k = O(0), M = O(0), F = O({ left: 0, right: 0, top: 0, bottom: 0 });
|
|
3498
3517
|
let C = null;
|
|
3499
|
-
oe(
|
|
3518
|
+
oe(b, (H) => {
|
|
3500
3519
|
H || (C && clearTimeout(C), C = setTimeout(() => {
|
|
3501
|
-
|
|
3520
|
+
w.value = 0, v.value = 0, k.value = 0, M.value = 0;
|
|
3502
3521
|
}, 300));
|
|
3503
3522
|
}), oe([m, _], () => {
|
|
3504
3523
|
if (!V.value) {
|
|
3505
|
-
$.value = m.value,
|
|
3506
|
-
const H = document.body.getBoundingClientRect(),
|
|
3507
|
-
F.value.right = H.width -
|
|
3524
|
+
$.value = m.value, I.value = _.value;
|
|
3525
|
+
const H = document.body.getBoundingClientRect(), x = d.value.getBoundingClientRect();
|
|
3526
|
+
F.value.right = H.width - x.width, F.value.bottom = H.height - x.height, k.value = w.value, M.value = v.value;
|
|
3508
3527
|
}
|
|
3509
3528
|
V.value = !0;
|
|
3510
|
-
}), oe(
|
|
3511
|
-
|
|
3529
|
+
}), oe(p, () => {
|
|
3530
|
+
p || (V.value = !1);
|
|
3512
3531
|
}), St(() => {
|
|
3513
|
-
V.value && (
|
|
3532
|
+
V.value && (w.value = k.value + Math.min(Math.max(F.value.left, m.value), F.value.right) - $.value, v.value = M.value + Math.min(Math.max(F.value.top, _.value), F.value.bottom) - I.value);
|
|
3514
3533
|
});
|
|
3515
|
-
const
|
|
3516
|
-
transform: `translate(${
|
|
3534
|
+
const y = P(() => ({
|
|
3535
|
+
transform: `translate(${w.value}px, ${v.value}px)`
|
|
3517
3536
|
})), s = () => {
|
|
3518
|
-
|
|
3537
|
+
b.value = !1, n("cancel");
|
|
3519
3538
|
}, h = () => {
|
|
3520
|
-
|
|
3539
|
+
n("ok");
|
|
3521
3540
|
};
|
|
3522
|
-
return
|
|
3541
|
+
return Te(() => {
|
|
3523
3542
|
C && clearTimeout(C);
|
|
3524
3543
|
}), t({
|
|
3525
3544
|
handleOk: h,
|
|
3526
3545
|
handleCancel: s,
|
|
3527
|
-
visible:
|
|
3528
|
-
}), (H,
|
|
3546
|
+
visible: b
|
|
3547
|
+
}), (H, x) => {
|
|
3529
3548
|
const R = N("a-spin"), ee = N("a-modal");
|
|
3530
|
-
return
|
|
3531
|
-
style:
|
|
3549
|
+
return i(), E(ee, le({
|
|
3550
|
+
style: f.value,
|
|
3532
3551
|
bodyStyle: a.value,
|
|
3533
3552
|
ref: "modalRef",
|
|
3534
|
-
visible:
|
|
3535
|
-
"onUpdate:visible":
|
|
3553
|
+
visible: b.value,
|
|
3554
|
+
"onUpdate:visible": x[0] || (x[0] = (J) => b.value = J),
|
|
3536
3555
|
"wrap-style": o.value,
|
|
3537
3556
|
onOk: h,
|
|
3538
3557
|
onCancel: s
|
|
3539
|
-
}, H.$attrs),
|
|
3558
|
+
}, H.$attrs), Be({
|
|
3540
3559
|
title: r(() => [
|
|
3541
3560
|
c("div", {
|
|
3542
3561
|
ref_key: "modalTitleRef",
|
|
@@ -3550,14 +3569,14 @@ const Bo = {
|
|
|
3550
3569
|
]),
|
|
3551
3570
|
modalRender: r(({ originVNode: J }) => [
|
|
3552
3571
|
c("div", {
|
|
3553
|
-
style: de(
|
|
3572
|
+
style: de(y.value)
|
|
3554
3573
|
}, [
|
|
3555
|
-
(
|
|
3574
|
+
(i(), E(Tt(J)))
|
|
3556
3575
|
], 4)
|
|
3557
3576
|
]),
|
|
3558
3577
|
default: r(() => [
|
|
3559
|
-
|
|
3560
|
-
spinning:
|
|
3578
|
+
S(R, {
|
|
3579
|
+
spinning: u.spinning
|
|
3561
3580
|
}, {
|
|
3562
3581
|
default: r(() => [
|
|
3563
3582
|
c("div", {
|
|
@@ -3619,33 +3638,33 @@ const Bo = {
|
|
|
3619
3638
|
}
|
|
3620
3639
|
},
|
|
3621
3640
|
setup(e) {
|
|
3622
|
-
const t = O("vertical"), l = e,
|
|
3623
|
-
return (
|
|
3641
|
+
const t = O("vertical"), l = e, n = () => document.querySelector(l.container);
|
|
3642
|
+
return (u, b) => (i(), E(g(Vt), { spinning: e.spinning }, {
|
|
3624
3643
|
default: r(() => [
|
|
3625
3644
|
c("div", {
|
|
3626
3645
|
class: Y(["hb_edit_wrapper", e.formLabelWidth ? "isNeedSetLabelWidth" : ""]),
|
|
3627
3646
|
style: de({ "--hb-edit-form-label": e.formLabelWidth })
|
|
3628
3647
|
}, [
|
|
3629
|
-
|
|
3630
|
-
j(
|
|
3648
|
+
u.$slots.editHeader ? (i(), T("div", _n, [
|
|
3649
|
+
j(u.$slots, "editHeader", {}, void 0, !0)
|
|
3631
3650
|
])) : z("", !0),
|
|
3632
3651
|
c("div", {
|
|
3633
3652
|
class: Y(["hb_edit_detail_content_wrapper", t.value === "vertical" ? "form_vertical" : ""])
|
|
3634
3653
|
}, [
|
|
3635
3654
|
c("div", Ln, [
|
|
3636
|
-
j(
|
|
3655
|
+
j(u.$slots, "editContent", {}, void 0, !0)
|
|
3637
3656
|
])
|
|
3638
3657
|
], 2),
|
|
3639
|
-
|
|
3640
|
-
j(
|
|
3658
|
+
u.$slots.editFooter ? (i(), T("div", Cn, [
|
|
3659
|
+
j(u.$slots, "editFooter", {}, void 0, !0)
|
|
3641
3660
|
])) : z("", !0),
|
|
3642
|
-
|
|
3643
|
-
target:
|
|
3661
|
+
S(g(wt), {
|
|
3662
|
+
target: n,
|
|
3644
3663
|
style: de({ bottom: e.backTopBottom + "px" })
|
|
3645
3664
|
}, {
|
|
3646
3665
|
default: r(() => [
|
|
3647
3666
|
c("div", kn, [
|
|
3648
|
-
|
|
3667
|
+
S(g(xt))
|
|
3649
3668
|
])
|
|
3650
3669
|
]),
|
|
3651
3670
|
_: 1
|
|
@@ -3655,7 +3674,7 @@ const Bo = {
|
|
|
3655
3674
|
_: 3
|
|
3656
3675
|
}, 8, ["spinning"]));
|
|
3657
3676
|
}
|
|
3658
|
-
}),
|
|
3677
|
+
}), Tn = /* @__PURE__ */ X(Sn, [["__scopeId", "data-v-8fa9c63b"]]), wn = _e(Tn), xn = { class: "hb_edit_header_left" }, Fn = { class: "hb_edit_header_title" }, Hn = { class: "hb_edit_header_right" }, $n = /* @__PURE__ */ Q({
|
|
3659
3678
|
name: "HbLibPageHeader",
|
|
3660
3679
|
__name: "HbLibPageHeader",
|
|
3661
3680
|
props: {
|
|
@@ -3673,33 +3692,33 @@ const Bo = {
|
|
|
3673
3692
|
}
|
|
3674
3693
|
},
|
|
3675
3694
|
setup(e) {
|
|
3676
|
-
const { t } = fe(), l = e,
|
|
3677
|
-
function d(
|
|
3678
|
-
let
|
|
3679
|
-
return (Array.isArray(
|
|
3680
|
-
let
|
|
3681
|
-
if (
|
|
3682
|
-
const
|
|
3683
|
-
|
|
3695
|
+
const { t } = fe(), l = e, n = Qe(), u = O(0), b = P(() => n?.meta?.title || "");
|
|
3696
|
+
function d(p, $ = "offsetHeight") {
|
|
3697
|
+
let I = 0;
|
|
3698
|
+
return (Array.isArray(p) ? p : [p]).forEach((w) => {
|
|
3699
|
+
let v = [];
|
|
3700
|
+
if (w.startsWith("#")) {
|
|
3701
|
+
const k = document.getElementById(w.slice(1));
|
|
3702
|
+
k && v.push(k);
|
|
3684
3703
|
} else
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3704
|
+
v = Array.from(document.getElementsByClassName(w));
|
|
3705
|
+
v.forEach((k) => {
|
|
3706
|
+
I += k[$] || 0;
|
|
3688
3707
|
});
|
|
3689
|
-
}),
|
|
3708
|
+
}), I;
|
|
3690
3709
|
}
|
|
3691
|
-
const
|
|
3692
|
-
l.topElements && (
|
|
3710
|
+
const f = () => {
|
|
3711
|
+
l.topElements && (u.value = d(l.topElements));
|
|
3693
3712
|
}, o = O(0), a = () => {
|
|
3694
3713
|
l.leftElements && (o.value = d(l.leftElements, "offsetWidth") + 1);
|
|
3695
3714
|
};
|
|
3696
3715
|
let m = null;
|
|
3697
|
-
|
|
3698
|
-
|
|
3716
|
+
pe(() => {
|
|
3717
|
+
f(), a(), window.addEventListener("resize", f), m = new MutationObserver(() => {
|
|
3699
3718
|
a();
|
|
3700
3719
|
});
|
|
3701
|
-
const
|
|
3702
|
-
m.observe(
|
|
3720
|
+
const p = document.body;
|
|
3721
|
+
m.observe(p, {
|
|
3703
3722
|
childList: !0,
|
|
3704
3723
|
// 子节点的变动
|
|
3705
3724
|
subtree: !0,
|
|
@@ -3708,39 +3727,39 @@ const Bo = {
|
|
|
3708
3727
|
// 属性的变动
|
|
3709
3728
|
});
|
|
3710
3729
|
}), Ge(() => {
|
|
3711
|
-
window.removeEventListener("resize",
|
|
3730
|
+
window.removeEventListener("resize", f), m && m.disconnect();
|
|
3712
3731
|
}), oe(
|
|
3713
3732
|
() => l.topElements,
|
|
3714
3733
|
() => {
|
|
3715
|
-
|
|
3734
|
+
f();
|
|
3716
3735
|
},
|
|
3717
3736
|
{ immediate: !0 }
|
|
3718
3737
|
);
|
|
3719
3738
|
const _ = () => {
|
|
3720
3739
|
l.backFn ? l.backFn() : window.history.back();
|
|
3721
3740
|
};
|
|
3722
|
-
return (
|
|
3723
|
-
const
|
|
3724
|
-
return
|
|
3741
|
+
return (p, $) => {
|
|
3742
|
+
const I = N("a-divider");
|
|
3743
|
+
return i(), T("div", {
|
|
3725
3744
|
class: "hb_edit_header",
|
|
3726
|
-
style: de({ top:
|
|
3745
|
+
style: de({ top: u.value + "px", "--pageHeaderOrFonterLeft": o.value + "px" })
|
|
3727
3746
|
}, [
|
|
3728
3747
|
c("aside", xn, [
|
|
3729
3748
|
c("a", {
|
|
3730
3749
|
href: "#",
|
|
3731
3750
|
class: "backBtn",
|
|
3732
3751
|
onClick: _
|
|
3733
|
-
}, L(
|
|
3734
|
-
|
|
3735
|
-
c("span", Fn, L(
|
|
3752
|
+
}, L(g(t)("hbLibComp.HbLibDetailBox.back")), 1),
|
|
3753
|
+
S(I, { type: "vertical" }),
|
|
3754
|
+
c("span", Fn, L(b.value), 1)
|
|
3736
3755
|
]),
|
|
3737
3756
|
c("aside", Hn, [
|
|
3738
|
-
j(
|
|
3757
|
+
j(p.$slots, "right", {}, void 0, !0)
|
|
3739
3758
|
])
|
|
3740
3759
|
], 4);
|
|
3741
3760
|
};
|
|
3742
3761
|
}
|
|
3743
|
-
}), In = /* @__PURE__ */ X($n, [["__scopeId", "data-v-83fcd208"]]), Mn = _e(In),
|
|
3762
|
+
}), In = /* @__PURE__ */ X($n, [["__scopeId", "data-v-83fcd208"]]), Mn = _e(In), Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3744
3763
|
__proto__: null,
|
|
3745
3764
|
HbLibAnchor: Ga,
|
|
3746
3765
|
HbLibCard: Va,
|
|
@@ -3748,61 +3767,61 @@ const Bo = {
|
|
|
3748
3767
|
HbLibFooterBar: hn,
|
|
3749
3768
|
HbLibModal: yn,
|
|
3750
3769
|
HbLibPageHeader: Mn,
|
|
3751
|
-
HbLibUnDetailBox:
|
|
3770
|
+
HbLibUnDetailBox: wn
|
|
3752
3771
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3753
3772
|
let mt = {
|
|
3754
3773
|
...Zo,
|
|
3755
3774
|
...la,
|
|
3756
3775
|
...fa,
|
|
3757
|
-
...
|
|
3776
|
+
...Da,
|
|
3758
3777
|
...Fa,
|
|
3759
|
-
...
|
|
3778
|
+
...Dn
|
|
3760
3779
|
};
|
|
3761
|
-
const
|
|
3780
|
+
const he = /* @__PURE__ */ new Map();
|
|
3762
3781
|
let vt;
|
|
3763
3782
|
el && (document.addEventListener("mousedown", (e) => vt = e), document.addEventListener("mouseup", (e) => {
|
|
3764
|
-
for (const t of
|
|
3783
|
+
for (const t of he.values())
|
|
3765
3784
|
for (const { documentHandler: l } of t)
|
|
3766
3785
|
l(e, vt);
|
|
3767
3786
|
}));
|
|
3768
3787
|
function gt(e, t) {
|
|
3769
3788
|
let l = [];
|
|
3770
|
-
return Array.isArray(t.arg) ? l = t.arg : t.arg instanceof HTMLElement && l.push(t.arg), function(
|
|
3771
|
-
const
|
|
3772
|
-
o || a || m || _ ||
|
|
3789
|
+
return Array.isArray(t.arg) ? l = t.arg : t.arg instanceof HTMLElement && l.push(t.arg), function(n, u) {
|
|
3790
|
+
const b = t.instance.popperRef, d = n.target, f = u?.target, o = !t || !t.instance, a = !d || !f, m = e.contains(d) || e.contains(f), _ = e === d, p = l.length && l.some((I) => I?.contains(d)) || l.length && l.includes(f), $ = b && (b.contains(d) || b.contains(f));
|
|
3791
|
+
o || a || m || _ || p || $ || t.value(n, u);
|
|
3773
3792
|
};
|
|
3774
3793
|
}
|
|
3775
|
-
const
|
|
3794
|
+
const An = {
|
|
3776
3795
|
beforeMount(e, t) {
|
|
3777
|
-
|
|
3796
|
+
he.has(e) || he.set(e, []), he.get(e).push({
|
|
3778
3797
|
documentHandler: gt(e, t),
|
|
3779
3798
|
bindingFn: t.value
|
|
3780
3799
|
});
|
|
3781
3800
|
},
|
|
3782
3801
|
updated(e, t) {
|
|
3783
|
-
|
|
3784
|
-
const l =
|
|
3802
|
+
he.has(e) || he.set(e, []);
|
|
3803
|
+
const l = he.get(e), n = l.findIndex((b) => b.bindingFn === t.oldValue), u = {
|
|
3785
3804
|
documentHandler: gt(e, t),
|
|
3786
3805
|
bindingFn: t.value
|
|
3787
3806
|
};
|
|
3788
|
-
|
|
3807
|
+
n >= 0 ? l.splice(n, 1, u) : l.push(u);
|
|
3789
3808
|
},
|
|
3790
3809
|
unmounted(e) {
|
|
3791
|
-
|
|
3810
|
+
he.delete(e);
|
|
3792
3811
|
}
|
|
3793
3812
|
}, Bn = {
|
|
3794
3813
|
mounted(e, t) {
|
|
3795
|
-
const { value: l, arg:
|
|
3814
|
+
const { value: l, arg: n } = t;
|
|
3796
3815
|
if (console.log(t), typeof l != "function") {
|
|
3797
3816
|
console.warn("[v-debounce-click] 绑定值必须是一个函数");
|
|
3798
3817
|
return;
|
|
3799
3818
|
}
|
|
3800
|
-
const
|
|
3801
|
-
let
|
|
3819
|
+
const u = parseInt(n, 10) || 300;
|
|
3820
|
+
let b;
|
|
3802
3821
|
e.__debounceHandler__ = function(...d) {
|
|
3803
|
-
|
|
3822
|
+
b && clearTimeout(b), b = setTimeout(() => {
|
|
3804
3823
|
l(...d);
|
|
3805
|
-
},
|
|
3824
|
+
}, u);
|
|
3806
3825
|
}, e.addEventListener("click", e.__debounceHandler__);
|
|
3807
3826
|
},
|
|
3808
3827
|
unmounted(e) {
|
|
@@ -3828,7 +3847,7 @@ const Dn = {
|
|
|
3828
3847
|
unmounted(e) {
|
|
3829
3848
|
e._dynamicApp && (e._dynamicApp.unmount(), delete e._dynamicApp), e._dynamicContainer && (e._dynamicContainer.remove(), delete e._dynamicContainer), delete e._dynamicPrevValue;
|
|
3830
3849
|
}
|
|
3831
|
-
}, zn = { cos:
|
|
3850
|
+
}, zn = { cos: An, dc: Bn, icp: On }, En = { 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" } }, Pn = {
|
|
3832
3851
|
hbLibComp: En
|
|
3833
3852
|
}, Rn = { 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: "戻る" } }, Nn = {
|
|
3834
3853
|
hbLibComp: Rn
|
|
@@ -3837,24 +3856,24 @@ const Dn = {
|
|
|
3837
3856
|
}, jn = { 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" } }, Wn = {
|
|
3838
3857
|
hbLibComp: jn
|
|
3839
3858
|
};
|
|
3840
|
-
var
|
|
3859
|
+
var xe = { exports: {} }, Yn = xe.exports, _t;
|
|
3841
3860
|
function qn() {
|
|
3842
3861
|
return _t || (_t = 1, (function(e, t) {
|
|
3843
|
-
(function(l,
|
|
3844
|
-
e.exports =
|
|
3862
|
+
(function(l, n) {
|
|
3863
|
+
e.exports = n(Oe);
|
|
3845
3864
|
})(Yn, (function(l) {
|
|
3846
|
-
function
|
|
3865
|
+
function n(d) {
|
|
3847
3866
|
return d && typeof d == "object" && "default" in d ? d : { default: d };
|
|
3848
3867
|
}
|
|
3849
|
-
var
|
|
3850
|
-
return
|
|
3851
|
-
}, 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(d,
|
|
3852
|
-
var o = 100 * d +
|
|
3868
|
+
var u = n(l), 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(d, f) {
|
|
3869
|
+
return f === "W" ? d + "周" : d + "日";
|
|
3870
|
+
}, 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(d, f) {
|
|
3871
|
+
var o = 100 * d + f;
|
|
3853
3872
|
return o < 600 ? "凌晨" : o < 900 ? "早上" : o < 1100 ? "上午" : o < 1300 ? "中午" : o < 1800 ? "下午" : "晚上";
|
|
3854
3873
|
} };
|
|
3855
|
-
return
|
|
3874
|
+
return u.default.locale(b, null, !0), b;
|
|
3856
3875
|
}));
|
|
3857
|
-
})(
|
|
3876
|
+
})(xe)), xe.exports;
|
|
3858
3877
|
}
|
|
3859
3878
|
qn();
|
|
3860
3879
|
Oe.locale("zh-cn");
|
|
@@ -3864,10 +3883,10 @@ const oi = {
|
|
|
3864
3883
|
zh_CN: Vn,
|
|
3865
3884
|
de_DE: Wn
|
|
3866
3885
|
}, ai = function(e, t = {}) {
|
|
3867
|
-
e.provide("globalCompConfig", t || {}), Object.keys(mt).forEach((
|
|
3868
|
-
e.use(mt[
|
|
3869
|
-
}), Object.entries(zn).forEach(([
|
|
3870
|
-
e.directive(
|
|
3886
|
+
e.provide("globalCompConfig", t || {}), Object.keys(mt).forEach((n) => {
|
|
3887
|
+
e.use(mt[n]);
|
|
3888
|
+
}), Object.entries(zn).forEach(([n, u]) => {
|
|
3889
|
+
e.directive(n, u);
|
|
3871
3890
|
});
|
|
3872
3891
|
};
|
|
3873
3892
|
export {
|