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