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