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