joy-admin-components 0.1.44 → 0.1.46
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.
|
@@ -1,194 +1,194 @@
|
|
|
1
|
-
import { ElForm as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { saveAs as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { createI18n as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import {
|
|
1
|
+
import { ElForm as vt, ElRow as bt, ElCol as yt, ElInputNumber as Ct, ElText as xt, ElLink as Ke } from "element-plus";
|
|
2
|
+
import { defineComponent as Ge, ref as j, onMounted as We, h as Ie, mergeModels as He, useAttrs as wt, useModel as kt, computed as se, resolveComponent as z, openBlock as L, createBlock as V, mergeProps as ge, unref as N, withCtx as A, renderSlot as ie, createVNode as W, createTextVNode as te, toDisplayString as ne, createCommentVNode as ce, createElementBlock as re, Fragment as Le, renderList as Je, withModifiers as Te, resolveDynamicComponent as Qe, createElementVNode as ae, withKeys as _t, normalizeStyle as St, normalizeClass as De, reactive as ve, nextTick as Fe, onUpdated as $t, onUnmounted as It, watch as Xe } from "vue";
|
|
3
|
+
import { saveAs as Ft } from "file-saver";
|
|
4
|
+
import et from "exceljs";
|
|
5
|
+
import be from "dayjs";
|
|
6
|
+
import { createI18n as Et, useI18n as de } from "vue-i18n";
|
|
7
|
+
import { debounce as tt, cloneDeep as nt, isArray as Ne } from "lodash";
|
|
8
|
+
import { useRoute as Lt, useRouter as Tt } from "vue-router";
|
|
9
|
+
import { createNamespacedHelpers as Re, useStore as ot, mapState as Dt, mapGetters as zt, mapActions as Ot } from "vuex";
|
|
9
10
|
import { VxeUI as he } from "vxe-pc-ui";
|
|
10
|
-
|
|
11
|
-
const gn = Ye({
|
|
11
|
+
const kn = Ge({
|
|
12
12
|
name: "LayOutForm",
|
|
13
13
|
setup(n, { slots: e, attrs: t, emit: l }) {
|
|
14
|
-
const
|
|
15
|
-
(
|
|
16
|
-
var
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
{ span: ((
|
|
14
|
+
const r = j(null), a = () => e.default ? e.default().filter((u) => u.type !== Symbol.for("v-cmt")).map((u) => u.type === Symbol.for("v-fgt") ? u.children : u).flat().map(
|
|
15
|
+
(u) => {
|
|
16
|
+
var c;
|
|
17
|
+
return Ie(
|
|
18
|
+
yt,
|
|
19
|
+
{ span: ((c = u.props) == null ? void 0 : c.span) || 24 },
|
|
20
20
|
{
|
|
21
|
-
default: () =>
|
|
21
|
+
default: () => u
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
) : null;
|
|
26
|
-
|
|
27
|
-
l("ref",
|
|
26
|
+
We(() => {
|
|
27
|
+
l("ref", r.value);
|
|
28
28
|
});
|
|
29
|
-
function
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
{ ...t, ref:
|
|
33
|
-
() =>
|
|
29
|
+
function o() {
|
|
30
|
+
return Ie(
|
|
31
|
+
vt,
|
|
32
|
+
{ ...t, ref: r },
|
|
33
|
+
() => Ie(bt, { gutter: t.gutter ?? 20 }, { default: () => a() })
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return o;
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
var
|
|
40
|
-
function
|
|
39
|
+
var lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
40
|
+
function rt(n) {
|
|
41
41
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
43
|
+
var at = { exports: {} };
|
|
44
44
|
(function(n, e) {
|
|
45
45
|
(function(t, l) {
|
|
46
46
|
n.exports = l();
|
|
47
|
-
})(
|
|
48
|
-
var t = "minute", l = /[+-]\d\d(?::?\d\d)?/g,
|
|
49
|
-
return function(
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
var f = { date:
|
|
53
|
-
return new
|
|
54
|
-
},
|
|
55
|
-
var f =
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
return
|
|
47
|
+
})(lt, function() {
|
|
48
|
+
var t = "minute", l = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
49
|
+
return function(a, o, u) {
|
|
50
|
+
var c = o.prototype;
|
|
51
|
+
u.utc = function(d) {
|
|
52
|
+
var f = { date: d, utc: !0, args: arguments };
|
|
53
|
+
return new o(f);
|
|
54
|
+
}, c.utc = function(d) {
|
|
55
|
+
var f = u(this.toDate(), { locale: this.$L, utc: !0 });
|
|
56
|
+
return d ? f.add(this.utcOffset(), t) : f;
|
|
57
|
+
}, c.local = function() {
|
|
58
|
+
return u(this.toDate(), { locale: this.$L, utc: !1 });
|
|
59
59
|
};
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
var w = c.parse;
|
|
61
|
+
c.parse = function(d) {
|
|
62
|
+
d.utc && (this.$u = !0), this.$utils().u(d.$offset) || (this.$offset = d.$offset), w.call(this, d);
|
|
63
63
|
};
|
|
64
|
-
var
|
|
65
|
-
|
|
64
|
+
var k = c.init;
|
|
65
|
+
c.init = function() {
|
|
66
66
|
if (this.$u) {
|
|
67
|
-
var
|
|
68
|
-
this.$y =
|
|
67
|
+
var d = this.$d;
|
|
68
|
+
this.$y = d.getUTCFullYear(), this.$M = d.getUTCMonth(), this.$D = d.getUTCDate(), this.$W = d.getUTCDay(), this.$H = d.getUTCHours(), this.$m = d.getUTCMinutes(), this.$s = d.getUTCSeconds(), this.$ms = d.getUTCMilliseconds();
|
|
69
69
|
} else
|
|
70
|
-
|
|
70
|
+
k.call(this);
|
|
71
71
|
};
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return this.$u ? 0 :
|
|
77
|
-
if (typeof
|
|
78
|
-
|
|
79
|
-
var
|
|
80
|
-
if (!
|
|
72
|
+
var x = c.utcOffset;
|
|
73
|
+
c.utcOffset = function(d, f) {
|
|
74
|
+
var _ = this.$utils().u;
|
|
75
|
+
if (_(d))
|
|
76
|
+
return this.$u ? 0 : _(this.$offset) ? x.call(this) : this.$offset;
|
|
77
|
+
if (typeof d == "string" && (d = function(E) {
|
|
78
|
+
E === void 0 && (E = "");
|
|
79
|
+
var B = E.match(l);
|
|
80
|
+
if (!B)
|
|
81
81
|
return null;
|
|
82
|
-
var
|
|
83
|
-
return
|
|
84
|
-
}(
|
|
82
|
+
var C = ("" + B[0]).match(r) || ["-", 0, 0], v = C[0], Y = 60 * +C[1] + +C[2];
|
|
83
|
+
return Y === 0 ? 0 : v === "+" ? Y : -Y;
|
|
84
|
+
}(d), d === null))
|
|
85
85
|
return this;
|
|
86
|
-
var h = Math.abs(
|
|
86
|
+
var h = Math.abs(d) <= 16 ? 60 * d : d;
|
|
87
87
|
if (h === 0)
|
|
88
88
|
return this.utc(f);
|
|
89
|
-
var
|
|
89
|
+
var g = this.clone();
|
|
90
90
|
if (f)
|
|
91
|
-
return
|
|
91
|
+
return g.$offset = h, g.$u = !1, g;
|
|
92
92
|
var I = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
93
|
-
return (
|
|
93
|
+
return (g = this.local().add(h + I, t)).$offset = h, g.$x.$localOffset = I, g;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
var f =
|
|
98
|
-
return
|
|
99
|
-
},
|
|
100
|
-
var
|
|
101
|
-
return this.$d.valueOf() - 6e4 *
|
|
102
|
-
},
|
|
95
|
+
var y = c.format;
|
|
96
|
+
c.format = function(d) {
|
|
97
|
+
var f = d || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
98
|
+
return y.call(this, f);
|
|
99
|
+
}, c.valueOf = function() {
|
|
100
|
+
var d = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
101
|
+
return this.$d.valueOf() - 6e4 * d;
|
|
102
|
+
}, c.isUTC = function() {
|
|
103
103
|
return !!this.$u;
|
|
104
|
-
},
|
|
104
|
+
}, c.toISOString = function() {
|
|
105
105
|
return this.toDate().toISOString();
|
|
106
|
-
},
|
|
106
|
+
}, c.toString = function() {
|
|
107
107
|
return this.toDate().toUTCString();
|
|
108
108
|
};
|
|
109
|
-
var
|
|
110
|
-
|
|
111
|
-
return
|
|
109
|
+
var p = c.toDate;
|
|
110
|
+
c.toDate = function(d) {
|
|
111
|
+
return d === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
|
|
112
112
|
};
|
|
113
|
-
var
|
|
114
|
-
|
|
115
|
-
if (
|
|
116
|
-
return
|
|
117
|
-
var h = this.local(),
|
|
118
|
-
return
|
|
113
|
+
var m = c.diff;
|
|
114
|
+
c.diff = function(d, f, _) {
|
|
115
|
+
if (d && this.$u === d.$u)
|
|
116
|
+
return m.call(this, d, f, _);
|
|
117
|
+
var h = this.local(), g = u(d).local();
|
|
118
|
+
return m.call(h, g, f, _);
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
|
-
})(
|
|
123
|
-
var
|
|
124
|
-
const
|
|
125
|
-
var
|
|
122
|
+
})(at);
|
|
123
|
+
var Mt = at.exports;
|
|
124
|
+
const Rt = /* @__PURE__ */ rt(Mt);
|
|
125
|
+
var st = { exports: {} };
|
|
126
126
|
(function(n, e) {
|
|
127
127
|
(function(t, l) {
|
|
128
128
|
n.exports = l();
|
|
129
|
-
})(
|
|
129
|
+
})(lt, function() {
|
|
130
130
|
var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, l = {};
|
|
131
|
-
return function(
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
var
|
|
131
|
+
return function(r, a, o) {
|
|
132
|
+
var u, c = function(y, p, m) {
|
|
133
|
+
m === void 0 && (m = {});
|
|
134
|
+
var d = new Date(y), f = function(_, h) {
|
|
135
135
|
h === void 0 && (h = {});
|
|
136
|
-
var
|
|
137
|
-
return
|
|
138
|
-
}(
|
|
139
|
-
return f.formatToParts(
|
|
140
|
-
},
|
|
141
|
-
for (var
|
|
142
|
-
var
|
|
143
|
-
I >= 0 && (
|
|
136
|
+
var g = h.timeZoneName || "short", I = _ + "|" + g, E = l[I];
|
|
137
|
+
return E || (E = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: _, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: g }), l[I] = E), E;
|
|
138
|
+
}(p, m);
|
|
139
|
+
return f.formatToParts(d);
|
|
140
|
+
}, w = function(y, p) {
|
|
141
|
+
for (var m = c(y, p), d = [], f = 0; f < m.length; f += 1) {
|
|
142
|
+
var _ = m[f], h = _.type, g = _.value, I = t[h];
|
|
143
|
+
I >= 0 && (d[I] = parseInt(g, 10));
|
|
144
144
|
}
|
|
145
|
-
var
|
|
146
|
-
return (
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
var
|
|
151
|
-
if (!Number(
|
|
152
|
-
|
|
153
|
-
else if (
|
|
154
|
-
var I =
|
|
155
|
-
|
|
145
|
+
var E = d[3], B = E === 24 ? 0 : E, C = d[0] + "-" + d[1] + "-" + d[2] + " " + B + ":" + d[4] + ":" + d[5] + ":000", v = +y;
|
|
146
|
+
return (o.utc(C).valueOf() - (v -= v % 1e3)) / 6e4;
|
|
147
|
+
}, k = a.prototype;
|
|
148
|
+
k.tz = function(y, p) {
|
|
149
|
+
y === void 0 && (y = u);
|
|
150
|
+
var m, d = this.utcOffset(), f = this.toDate(), _ = f.toLocaleString("en-US", { timeZone: y }), h = Math.round((f - new Date(_)) / 1e3 / 60), g = 15 * -Math.round(f.getTimezoneOffset() / 15) - h;
|
|
151
|
+
if (!Number(g))
|
|
152
|
+
m = this.utcOffset(0, p);
|
|
153
|
+
else if (m = o(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(g, !0), p) {
|
|
154
|
+
var I = m.utcOffset();
|
|
155
|
+
m = m.add(d - I, "minute");
|
|
156
156
|
}
|
|
157
|
-
return
|
|
158
|
-
},
|
|
159
|
-
var
|
|
160
|
-
return
|
|
157
|
+
return m.$x.$timezone = y, m;
|
|
158
|
+
}, k.offsetName = function(y) {
|
|
159
|
+
var p = this.$x.$timezone || o.tz.guess(), m = c(this.valueOf(), p, { timeZoneName: y }).find(function(d) {
|
|
160
|
+
return d.type.toLowerCase() === "timezonename";
|
|
161
161
|
});
|
|
162
|
-
return
|
|
162
|
+
return m && m.value;
|
|
163
163
|
};
|
|
164
|
-
var
|
|
165
|
-
|
|
164
|
+
var x = k.startOf;
|
|
165
|
+
k.startOf = function(y, p) {
|
|
166
166
|
if (!this.$x || !this.$x.$timezone)
|
|
167
|
-
return
|
|
168
|
-
var
|
|
169
|
-
return
|
|
170
|
-
},
|
|
171
|
-
var
|
|
172
|
-
if (typeof
|
|
173
|
-
return
|
|
174
|
-
var h = function(
|
|
175
|
-
var
|
|
176
|
-
if (
|
|
177
|
-
return [
|
|
178
|
-
var
|
|
179
|
-
return
|
|
180
|
-
}(
|
|
181
|
-
return
|
|
182
|
-
},
|
|
167
|
+
return x.call(this, y, p);
|
|
168
|
+
var m = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
169
|
+
return x.call(m, y, p).tz(this.$x.$timezone, !0);
|
|
170
|
+
}, o.tz = function(y, p, m) {
|
|
171
|
+
var d = m && p, f = m || p || u, _ = w(+o(), f);
|
|
172
|
+
if (typeof y != "string")
|
|
173
|
+
return o(y).tz(f);
|
|
174
|
+
var h = function(B, C, v) {
|
|
175
|
+
var Y = B - 60 * C * 1e3, K = w(Y, v);
|
|
176
|
+
if (C === K)
|
|
177
|
+
return [Y, C];
|
|
178
|
+
var P = w(Y -= 60 * (K - C) * 1e3, v);
|
|
179
|
+
return K === P ? [Y, K] : [B - 60 * Math.min(K, P) * 1e3, Math.max(K, P)];
|
|
180
|
+
}(o.utc(y, d).valueOf(), _, f), g = h[0], I = h[1], E = o(g).utcOffset(I);
|
|
181
|
+
return E.$x.$timezone = f, E;
|
|
182
|
+
}, o.tz.guess = function() {
|
|
183
183
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
184
|
-
},
|
|
185
|
-
|
|
184
|
+
}, o.tz.setDefault = function(y) {
|
|
185
|
+
u = y;
|
|
186
186
|
};
|
|
187
187
|
};
|
|
188
188
|
});
|
|
189
|
-
})(
|
|
190
|
-
var
|
|
191
|
-
const
|
|
189
|
+
})(st);
|
|
190
|
+
var At = st.exports;
|
|
191
|
+
const Vt = /* @__PURE__ */ rt(At), ze = {
|
|
192
192
|
// 组件通用文本
|
|
193
193
|
"dao-ru": "导入",
|
|
194
194
|
"quan-xuan": "全选",
|
|
@@ -218,7 +218,7 @@ const Ft = /* @__PURE__ */ et(Tt), Le = {
|
|
|
218
218
|
tools: {
|
|
219
219
|
keysLengthError: "keys 长度必须大于2 默认前两位为 label value"
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, Oe = {
|
|
222
222
|
// Common component text
|
|
223
223
|
"dao-ru": "Import",
|
|
224
224
|
"quan-xuan": "Select All",
|
|
@@ -248,137 +248,137 @@ const Ft = /* @__PURE__ */ et(Tt), Le = {
|
|
|
248
248
|
tools: {
|
|
249
249
|
keysLengthError: "Keys length must be greater than 2, default first two are label and value"
|
|
250
250
|
}
|
|
251
|
-
},
|
|
252
|
-
zh_cn:
|
|
253
|
-
en:
|
|
251
|
+
}, Pt = {
|
|
252
|
+
zh_cn: ze,
|
|
253
|
+
en: Oe
|
|
254
254
|
};
|
|
255
|
-
let
|
|
256
|
-
function
|
|
255
|
+
let ue = null;
|
|
256
|
+
function Ut(n = null) {
|
|
257
257
|
if (n) {
|
|
258
258
|
const { global: e } = n;
|
|
259
|
-
return e.messages.value.zh_cn ? e.mergeLocaleMessage("zh_cn",
|
|
259
|
+
return e.messages.value.zh_cn ? e.mergeLocaleMessage("zh_cn", ze) : e.setLocaleMessage("zh_cn", ze), e.messages.value.en ? e.mergeLocaleMessage("en", Oe) : e.setLocaleMessage("en", Oe), ue = n, n;
|
|
260
260
|
}
|
|
261
|
-
return
|
|
261
|
+
return ue || (ue = Et({
|
|
262
262
|
legacy: !1,
|
|
263
263
|
locale: "zh_cn",
|
|
264
264
|
fallbackLocale: "zh_cn",
|
|
265
|
-
messages:
|
|
266
|
-
})),
|
|
265
|
+
messages: Pt
|
|
266
|
+
})), ue;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return
|
|
268
|
+
function it() {
|
|
269
|
+
return ue || Ut();
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
return
|
|
271
|
+
function Ae() {
|
|
272
|
+
return it().global.t;
|
|
273
273
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
async function
|
|
274
|
+
be.extend(Rt);
|
|
275
|
+
be.extend(Vt);
|
|
276
|
+
async function _n(n, e) {
|
|
277
277
|
const { fields: t, range: l = 1 } = e;
|
|
278
278
|
if (!t) {
|
|
279
|
-
const
|
|
280
|
-
throw new Error(
|
|
279
|
+
const o = Ae();
|
|
280
|
+
throw new Error(o("excel.fieldsMappingRequired"));
|
|
281
281
|
}
|
|
282
|
-
let
|
|
283
|
-
await
|
|
284
|
-
const
|
|
285
|
-
return
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
if (
|
|
289
|
-
let
|
|
290
|
-
Object.keys(t).forEach((
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
}),
|
|
282
|
+
let r = new et.Workbook();
|
|
283
|
+
await r.xlsx.load(n);
|
|
284
|
+
const a = {};
|
|
285
|
+
return r.eachSheet(function(o, u) {
|
|
286
|
+
const c = [];
|
|
287
|
+
o.eachRow(function(w, k) {
|
|
288
|
+
if (k > l) {
|
|
289
|
+
let x = {}, y = !0;
|
|
290
|
+
Object.keys(t).forEach((p) => {
|
|
291
|
+
const m = w.getCell(t[p]).value;
|
|
292
|
+
x[p] = m, m && (y = !1);
|
|
293
|
+
}), y || c.push(x);
|
|
294
294
|
}
|
|
295
|
-
}),
|
|
296
|
-
}),
|
|
295
|
+
}), a[o._name] = c;
|
|
296
|
+
}), r = null, a;
|
|
297
297
|
}
|
|
298
|
-
const
|
|
298
|
+
const jt = {
|
|
299
299
|
columnWidth: 30
|
|
300
300
|
};
|
|
301
|
-
async function
|
|
301
|
+
async function qt(n, e, t = [], l = {}) {
|
|
302
302
|
if (!n || !e)
|
|
303
303
|
return;
|
|
304
|
-
const { columnStyle:
|
|
305
|
-
e.forEach((
|
|
306
|
-
|
|
304
|
+
const { columnStyle: r } = l, { columnWidth: a } = jt;
|
|
305
|
+
e.forEach((c) => {
|
|
306
|
+
c.width = c.width ? c.width : a;
|
|
307
307
|
});
|
|
308
|
-
const { workbook:
|
|
309
|
-
|
|
308
|
+
const { workbook: o, worksheet: u } = Bt();
|
|
309
|
+
u.columns = e, u.addRows(t), r && await Yt(o, u, r);
|
|
310
310
|
try {
|
|
311
|
-
const
|
|
311
|
+
const c = await o.xlsx.writeBuffer(), w = new File([c], n, {
|
|
312
312
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
313
313
|
});
|
|
314
|
-
|
|
315
|
-
} catch (
|
|
316
|
-
console.log(
|
|
314
|
+
Ft(w);
|
|
315
|
+
} catch (c) {
|
|
316
|
+
console.log(c);
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
const n = new
|
|
319
|
+
function Bt() {
|
|
320
|
+
const n = new et.Workbook();
|
|
321
321
|
n.creator = "distributor System", n.lastModifiedBy = "distributor System", n.created = /* @__PURE__ */ new Date(), n.modified = /* @__PURE__ */ new Date(), n.lastPrinted = /* @__PURE__ */ new Date();
|
|
322
322
|
const e = n.addWorksheet("Sheet1");
|
|
323
323
|
return { workbook: n, worksheet: e };
|
|
324
324
|
}
|
|
325
|
-
async function
|
|
325
|
+
async function Yt(n, e, t) {
|
|
326
326
|
const l = Object.keys(t);
|
|
327
|
-
for (const
|
|
328
|
-
const
|
|
329
|
-
switch (
|
|
327
|
+
for (const r of l) {
|
|
328
|
+
const a = t[r], { type: o } = a;
|
|
329
|
+
switch (o) {
|
|
330
330
|
case "IMG":
|
|
331
|
-
await
|
|
331
|
+
await Kt(n, e, r);
|
|
332
332
|
break;
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
async function
|
|
337
|
-
const
|
|
338
|
-
e.getColumn(t).width = 20, e.eachRow((
|
|
339
|
-
|
|
336
|
+
async function Kt(n, e, t, l) {
|
|
337
|
+
const r = e.getColumn(t), a = r.values;
|
|
338
|
+
e.getColumn(t).width = 20, e.eachRow((o, u) => {
|
|
339
|
+
u > 1 && (o.height = 40);
|
|
340
340
|
});
|
|
341
|
-
for (let
|
|
342
|
-
if (
|
|
341
|
+
for (let o = 0, u = a.length; o < u; o++) {
|
|
342
|
+
if (o < 2)
|
|
343
343
|
continue;
|
|
344
|
-
let
|
|
345
|
-
|
|
344
|
+
let c = a[o];
|
|
345
|
+
c && (e.getCell(r.letter + o).value = "", await Ht(n, e, c, {
|
|
346
346
|
width: 100,
|
|
347
347
|
height: 50,
|
|
348
|
-
col:
|
|
349
|
-
row:
|
|
348
|
+
col: r._number - 1,
|
|
349
|
+
row: o - 1
|
|
350
350
|
}));
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
async function
|
|
354
|
-
const { col:
|
|
355
|
-
if (
|
|
356
|
-
const
|
|
357
|
-
base64:
|
|
353
|
+
async function Ht(n, e, t, l) {
|
|
354
|
+
const { col: r, row: a, width: o, height: u } = l, { success: c, base64: w } = await Nt(t, 0.3);
|
|
355
|
+
if (c) {
|
|
356
|
+
const k = n.addImage({
|
|
357
|
+
base64: w,
|
|
358
358
|
extension: "jpeg"
|
|
359
359
|
});
|
|
360
|
-
e.addImage(
|
|
361
|
-
tl: { col:
|
|
362
|
-
ext: { width:
|
|
360
|
+
e.addImage(k, {
|
|
361
|
+
tl: { col: r, row: a },
|
|
362
|
+
ext: { width: o, height: u }
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Nt(n, e = 1) {
|
|
367
367
|
const t = new Image();
|
|
368
|
-
return t.setAttribute("crossOrigin", "anonymous"), t.crossOrigin = "anonymous", t.src = n, new Promise((l,
|
|
368
|
+
return t.setAttribute("crossOrigin", "anonymous"), t.crossOrigin = "anonymous", t.src = n, new Promise((l, r) => {
|
|
369
369
|
t.onload = () => {
|
|
370
|
-
const
|
|
371
|
-
|
|
370
|
+
const a = document.createElement("canvas");
|
|
371
|
+
a.width = t.width, a.height = t.height, a.getContext("2d").drawImage(t, 0, 0, a.width, a.height), l({
|
|
372
372
|
success: !0,
|
|
373
373
|
//canvas.toDataURL的方法将图片的绝对路径转换为base64编码
|
|
374
|
-
base64:
|
|
374
|
+
base64: a.toDataURL("image/jpeg", e)
|
|
375
375
|
});
|
|
376
376
|
}, t.onerror = () => {
|
|
377
377
|
l({ success: !1 });
|
|
378
378
|
};
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Zt(n) {
|
|
382
382
|
if (n < 26)
|
|
383
383
|
return String.fromCharCode(65 + n);
|
|
384
384
|
{
|
|
@@ -386,52 +386,52 @@ function qt(n) {
|
|
|
386
386
|
return e + t;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Sn(n) {
|
|
390
390
|
return new Promise((e) => {
|
|
391
391
|
setTimeout(() => {
|
|
392
392
|
e();
|
|
393
393
|
}, n);
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function $n(n) {
|
|
397
397
|
return JSON.parse(JSON.stringify(n));
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
let e = [], t = {}, l = (
|
|
401
|
-
for (const
|
|
402
|
-
t[
|
|
403
|
-
...
|
|
399
|
+
function In(n) {
|
|
400
|
+
let e = [], t = {}, l = (r, a) => Object.prototype.hasOwnProperty.call(r, a);
|
|
401
|
+
for (const r of n) {
|
|
402
|
+
t[r.id] = {
|
|
403
|
+
...r,
|
|
404
404
|
// 判断当前项的子项 如果map有存储就用存储的子项 否则初始化
|
|
405
|
-
children: l(t,
|
|
405
|
+
children: l(t, r.id) ? t[r.id].children : []
|
|
406
406
|
};
|
|
407
|
-
const
|
|
408
|
-
|
|
407
|
+
const a = t[r.id];
|
|
408
|
+
r.pid == -1 ? e.push(a) : (l(t, r.pid) || (t[r.pid] = {
|
|
409
409
|
children: []
|
|
410
|
-
}), t[
|
|
410
|
+
}), t[r.pid].children.push(a));
|
|
411
411
|
}
|
|
412
412
|
return e;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ct(n, e = " ") {
|
|
415
415
|
return n ? n.split(e).filter((t) => t.trim()) : [];
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class Ze {
|
|
418
418
|
constructor(e, t = ["label", "value", "labelEn"]) {
|
|
419
419
|
this.list = e, this.map = new Map(
|
|
420
420
|
e.map((l) => {
|
|
421
|
-
let
|
|
421
|
+
let r = {
|
|
422
422
|
...l,
|
|
423
423
|
label: l[t[0]],
|
|
424
424
|
value: l[t[1]]
|
|
425
425
|
};
|
|
426
|
-
return t[2] && (
|
|
426
|
+
return t[2] && (r.labelEn = l[t[2]]), [l[t[1]], r];
|
|
427
427
|
})
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
getName(e, t) {
|
|
431
431
|
if (!this.has(e))
|
|
432
432
|
return "-";
|
|
433
|
-
const { label: l, labelEn:
|
|
434
|
-
return (t == "zh_cn" ? l :
|
|
433
|
+
const { label: l, labelEn: r } = this.map.get(e);
|
|
434
|
+
return (t == "zh_cn" ? l : r) || l || "-";
|
|
435
435
|
}
|
|
436
436
|
getTag(e) {
|
|
437
437
|
if (!this.has(e))
|
|
@@ -452,52 +452,52 @@ class Be {
|
|
|
452
452
|
return this.map.has(e);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Fn(n, e = [], t = "i18nName") {
|
|
456
456
|
if (n.length == 0)
|
|
457
|
-
return new
|
|
457
|
+
return new Ze([]);
|
|
458
458
|
if (e.length < 2) {
|
|
459
|
-
const
|
|
460
|
-
throw new Error(
|
|
459
|
+
const r = Ae();
|
|
460
|
+
throw new Error(r("tools.keysLengthError"));
|
|
461
461
|
}
|
|
462
|
-
let l = n.map((
|
|
463
|
-
let
|
|
464
|
-
return t && (
|
|
465
|
-
|
|
466
|
-
}),
|
|
462
|
+
let l = n.map((r) => {
|
|
463
|
+
let a = {};
|
|
464
|
+
return t && (a.labelEn = r[t]), e.forEach((o, u) => {
|
|
465
|
+
u === 0 ? a.label = r[o] : u === 1 ? a.value = r[o] : a[o] = r[o];
|
|
466
|
+
}), a;
|
|
467
467
|
});
|
|
468
|
-
return new
|
|
468
|
+
return new Ze(l);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function En(n) {
|
|
471
471
|
return n ? n.replace(/<[^>]+>/g, "") : "";
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ln(n) {
|
|
474
474
|
return n ? (n.includes("\\\\u") && (n = n.replace(/\\/g, "")), n.replace(/\\u[\dA-F]{4}/gi, (e) => String.fromCharCode(parseInt(e.replace(/\\u/g, ""), 16)))) : "";
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Tn(n, e = 10) {
|
|
477
477
|
let t = 1048576 * e;
|
|
478
478
|
return !(n.size > t);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Dn(n) {
|
|
481
481
|
return Array.from(10).fill(0).map((t, l) => n + "_" + l);
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function zn(n) {
|
|
484
484
|
let e = {};
|
|
485
485
|
return n.map((t, l) => {
|
|
486
|
-
let { key:
|
|
487
|
-
|
|
486
|
+
let { key: r, option: a, type: o } = t, u = Zt(l);
|
|
487
|
+
a ? e[r] = `${u}---option` : o === "image" ? e[r] = `${u}---image` : e[r] = u;
|
|
488
488
|
}), e;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function On(n, e) {
|
|
491
491
|
return e.split(".").reduce((t, l) => t && t[l], n);
|
|
492
492
|
}
|
|
493
|
-
const
|
|
493
|
+
const pe = (n, e) => {
|
|
494
494
|
const t = n.__vccOpts || n;
|
|
495
|
-
for (const [l,
|
|
496
|
-
t[l] =
|
|
495
|
+
for (const [l, r] of e)
|
|
496
|
+
t[l] = r;
|
|
497
497
|
return t;
|
|
498
|
-
},
|
|
498
|
+
}, Gt = {
|
|
499
499
|
__name: "index",
|
|
500
|
-
props: /* @__PURE__ */
|
|
500
|
+
props: /* @__PURE__ */ He({
|
|
501
501
|
api: {
|
|
502
502
|
type: Function
|
|
503
503
|
},
|
|
@@ -533,95 +533,95 @@ const ge = (n, e) => {
|
|
|
533
533
|
modelValue: {},
|
|
534
534
|
modelModifiers: {}
|
|
535
535
|
}),
|
|
536
|
-
emits: /* @__PURE__ */
|
|
536
|
+
emits: /* @__PURE__ */ He(["success", "change"], ["update:modelValue"]),
|
|
537
537
|
setup(n, { emit: e }) {
|
|
538
|
-
const t = n, l =
|
|
538
|
+
const t = n, l = wt(), { t: r, locale: a } = de(), o = kt(n, "modelValue"), u = j(""), c = se(() => {
|
|
539
539
|
if (l.remote !== void 0)
|
|
540
540
|
return t.data;
|
|
541
|
-
const h =
|
|
541
|
+
const h = ct(u.value), { data: g, labelValue: I } = t, E = g || x.value;
|
|
542
542
|
if (h.length == 0)
|
|
543
|
-
return
|
|
544
|
-
const { label:
|
|
545
|
-
let
|
|
546
|
-
return h.length == 1 ?
|
|
547
|
-
(
|
|
548
|
-
) :
|
|
549
|
-
let
|
|
550
|
-
return
|
|
543
|
+
return E;
|
|
544
|
+
const { label: B, labelEn: C } = I;
|
|
545
|
+
let v = a.value == "en_us" ? C || "i18nName" : B;
|
|
546
|
+
return h.length == 1 ? E.filter(
|
|
547
|
+
(K) => K[v].toLowerCase().includes(h[0].toLowerCase())
|
|
548
|
+
) : E.filter((K) => {
|
|
549
|
+
let P = !1;
|
|
550
|
+
return P = h.some((ye) => K[v].toLowerCase() == ye.toLowerCase()), P;
|
|
551
551
|
});
|
|
552
|
-
}),
|
|
552
|
+
}), w = se({
|
|
553
553
|
get() {
|
|
554
|
-
return l.multiple == null ||
|
|
554
|
+
return l.multiple == null || o.value == null ? !1 : o.value.length == c.value.length;
|
|
555
555
|
},
|
|
556
556
|
set(h) {
|
|
557
557
|
return h;
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
559
|
+
}), k = e, x = j([]), y = async () => {
|
|
560
560
|
const { data: h } = await t.api();
|
|
561
|
-
|
|
561
|
+
x.value = [...h], k("success", x);
|
|
562
562
|
};
|
|
563
|
-
t.api &&
|
|
564
|
-
const
|
|
565
|
-
if (
|
|
563
|
+
t.api && y();
|
|
564
|
+
const p = t.labelValue.label.split("-"), m = (h) => {
|
|
565
|
+
if (p.length == 1) {
|
|
566
566
|
if (t.changeLocal)
|
|
567
|
-
return
|
|
568
|
-
let
|
|
569
|
-
return
|
|
567
|
+
return r(h[t.labelValue.label]);
|
|
568
|
+
let g = a.value == "en_us" ? h[t.labelValue.labelEn || "i18nName"] : h[t.labelValue.label];
|
|
569
|
+
return g = g || h[t.labelValue.label], g;
|
|
570
570
|
} else {
|
|
571
|
-
let
|
|
572
|
-
return
|
|
573
|
-
|
|
574
|
-
}),
|
|
571
|
+
let g = [];
|
|
572
|
+
return p.forEach((I) => {
|
|
573
|
+
g.push(h[I]);
|
|
574
|
+
}), g.join("-");
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
|
-
function
|
|
578
|
-
|
|
577
|
+
function d(h) {
|
|
578
|
+
o.value = h ? c.value.map((g) => g[t.labelValue.value]) : [], k("change", o.value);
|
|
579
579
|
}
|
|
580
580
|
function f(h) {
|
|
581
|
-
t.optionClick(h),
|
|
581
|
+
t.optionClick(h), k("change", l["value-key"] ? h : h[t.labelValue.value]);
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
return
|
|
583
|
+
function _(h) {
|
|
584
|
+
return o.value.length >= t.maxLimit && !o.value.includes(h[t.labelValue.value]);
|
|
585
585
|
}
|
|
586
|
-
return (h,
|
|
587
|
-
const I =
|
|
588
|
-
return L(),
|
|
589
|
-
modelValue:
|
|
590
|
-
"onUpdate:modelValue":
|
|
586
|
+
return (h, g) => {
|
|
587
|
+
const I = z("el-checkbox"), E = z("el-option"), B = z("el-select");
|
|
588
|
+
return L(), V(B, ge({
|
|
589
|
+
modelValue: o.value,
|
|
590
|
+
"onUpdate:modelValue": g[1] || (g[1] = (C) => o.value = C),
|
|
591
591
|
filterable: "",
|
|
592
592
|
"collapse-tags": "",
|
|
593
593
|
"collapse-tags-tooltip": "",
|
|
594
|
-
"filter-method":
|
|
594
|
+
"filter-method": N(l).remote != null ? void 0 : (C) => u.value = C,
|
|
595
595
|
clearable: ""
|
|
596
|
-
},
|
|
597
|
-
default:
|
|
598
|
-
|
|
599
|
-
|
|
596
|
+
}, N(l), { onClear: n.optionClick }), {
|
|
597
|
+
default: A(() => [
|
|
598
|
+
N(l).multiple != null && n.showCheckAll && n.maxLimit == null ? ie(h.$slots, "header", { key: 0 }, () => [
|
|
599
|
+
W(I, {
|
|
600
600
|
class: "mgl20",
|
|
601
|
-
modelValue:
|
|
602
|
-
"onUpdate:modelValue":
|
|
603
|
-
onChange:
|
|
601
|
+
modelValue: w.value,
|
|
602
|
+
"onUpdate:modelValue": g[0] || (g[0] = (C) => w.value = C),
|
|
603
|
+
onChange: d
|
|
604
604
|
}, {
|
|
605
|
-
default:
|
|
606
|
-
|
|
605
|
+
default: A(() => [
|
|
606
|
+
te(ne(h.$t("quan-xuan")), 1)
|
|
607
607
|
]),
|
|
608
608
|
_: 1
|
|
609
609
|
}, 8, ["modelValue"])
|
|
610
|
-
], !0) :
|
|
611
|
-
(L(!0),
|
|
612
|
-
key:
|
|
613
|
-
label:
|
|
614
|
-
disabled:
|
|
615
|
-
onClick:
|
|
616
|
-
value:
|
|
610
|
+
], !0) : ce("", !0),
|
|
611
|
+
(L(!0), re(Le, null, Je(c.value, (C, v) => (L(), V(E, {
|
|
612
|
+
key: v,
|
|
613
|
+
label: m(C),
|
|
614
|
+
disabled: N(l).multiple != null && n.maxLimit > 0 ? _(C) : !1,
|
|
615
|
+
onClick: Te((Y) => f(C), ["stop"]),
|
|
616
|
+
value: N(l)["value-key"] ? C : C[n.labelValue.value]
|
|
617
617
|
}, null, 8, ["label", "disabled", "onClick", "value"]))), 128))
|
|
618
618
|
]),
|
|
619
619
|
_: 3
|
|
620
620
|
}, 16, ["modelValue", "filter-method", "onClear"]);
|
|
621
621
|
};
|
|
622
622
|
}
|
|
623
|
-
},
|
|
624
|
-
const
|
|
623
|
+
}, Wt = /* @__PURE__ */ pe(Gt, [["__scopeId", "data-v-34eb8641"]]);
|
|
624
|
+
const Jt = Ge({
|
|
625
625
|
props: {
|
|
626
626
|
name: {
|
|
627
627
|
tyepe: String,
|
|
@@ -629,38 +629,38 @@ const Yt = Ye({
|
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
|
-
function
|
|
633
|
-
const
|
|
634
|
-
return L(),
|
|
635
|
-
default:
|
|
636
|
-
(L(),
|
|
632
|
+
function Qt(n, e, t, l, r, a) {
|
|
633
|
+
const o = z("el-icon");
|
|
634
|
+
return L(), V(o, { class: "cmp-icon" }, {
|
|
635
|
+
default: A(() => [
|
|
636
|
+
(L(), V(Qe(n.name)))
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
});
|
|
640
640
|
}
|
|
641
|
-
const
|
|
641
|
+
const ut = /* @__PURE__ */ pe(Jt, [["render", Qt], ["__scopeId", "data-v-733f9daa"]]), Mn = {
|
|
642
642
|
__name: "index",
|
|
643
643
|
emits: ["ok", "no"],
|
|
644
644
|
setup(n, { emit: e }) {
|
|
645
|
-
const t = e, l =
|
|
645
|
+
const t = e, l = tt(() => {
|
|
646
646
|
t("ok");
|
|
647
647
|
}, 500);
|
|
648
|
-
function
|
|
648
|
+
function r() {
|
|
649
649
|
t("no");
|
|
650
650
|
}
|
|
651
|
-
return (
|
|
652
|
-
const
|
|
653
|
-
return L(),
|
|
654
|
-
onConfirm:
|
|
655
|
-
onCancel:
|
|
651
|
+
return (a, o) => {
|
|
652
|
+
const u = z("el-link"), c = z("el-popconfirm");
|
|
653
|
+
return L(), V(c, ge(a.$attrs, {
|
|
654
|
+
onConfirm: N(l),
|
|
655
|
+
onCancel: r
|
|
656
656
|
}), {
|
|
657
|
-
reference:
|
|
658
|
-
|
|
657
|
+
reference: A(() => [
|
|
658
|
+
W(u, {
|
|
659
659
|
underline: "never",
|
|
660
|
-
type:
|
|
660
|
+
type: a.$attrs.type
|
|
661
661
|
}, {
|
|
662
|
-
default:
|
|
663
|
-
|
|
662
|
+
default: A(() => [
|
|
663
|
+
ie(a.$slots, "default")
|
|
664
664
|
]),
|
|
665
665
|
_: 3
|
|
666
666
|
}, 8, ["type"])
|
|
@@ -670,7 +670,7 @@ const rt = /* @__PURE__ */ ge(Yt, [["render", Ht], ["__scopeId", "data-v-733f9da
|
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
|
-
const
|
|
673
|
+
const Xt = ["accept"], en = {
|
|
674
674
|
__name: "index",
|
|
675
675
|
props: {
|
|
676
676
|
accept: {
|
|
@@ -684,55 +684,55 @@ const Nt = ["accept"], Kt = {
|
|
|
684
684
|
},
|
|
685
685
|
emits: ["fileChange"],
|
|
686
686
|
setup(n, { emit: e }) {
|
|
687
|
-
const t = e, l =
|
|
688
|
-
function
|
|
689
|
-
let
|
|
690
|
-
t("fileChange",
|
|
687
|
+
const t = e, l = j(null);
|
|
688
|
+
function r(a) {
|
|
689
|
+
let o = a.target.files[0];
|
|
690
|
+
t("fileChange", o), l.value.value = null;
|
|
691
691
|
}
|
|
692
|
-
return (
|
|
693
|
-
const
|
|
694
|
-
return L(),
|
|
695
|
-
|
|
692
|
+
return (a, o) => {
|
|
693
|
+
const u = z("el-button");
|
|
694
|
+
return L(), re("span", null, [
|
|
695
|
+
W(u, {
|
|
696
696
|
loading: n.loading,
|
|
697
697
|
class: "mgr10",
|
|
698
|
-
onClick:
|
|
698
|
+
onClick: o[0] || (o[0] = (c) => l.value.click())
|
|
699
699
|
}, {
|
|
700
|
-
default:
|
|
701
|
-
|
|
700
|
+
default: A(() => [
|
|
701
|
+
te(ne(a.$t("dao-ru")), 1)
|
|
702
702
|
]),
|
|
703
703
|
_: 1
|
|
704
704
|
}, 8, ["loading"]),
|
|
705
|
-
|
|
706
|
-
onChange:
|
|
705
|
+
ae("input", {
|
|
706
|
+
onChange: r,
|
|
707
707
|
ref_key: "input",
|
|
708
708
|
ref: l,
|
|
709
709
|
accept: n.accept,
|
|
710
710
|
style: { position: "absolute", width: "0px", height: "0px", opacity: "0" },
|
|
711
711
|
type: "file"
|
|
712
|
-
}, null, 40,
|
|
712
|
+
}, null, 40, Xt)
|
|
713
713
|
]);
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
|
-
},
|
|
717
|
-
function
|
|
716
|
+
}, Rn = /* @__PURE__ */ pe(en, [["__scopeId", "data-v-5f1449ad"]]);
|
|
717
|
+
function Me(n) {
|
|
718
718
|
let e = {};
|
|
719
719
|
return n.forEach((t) => {
|
|
720
|
-
const { key: l, type:
|
|
720
|
+
const { key: l, type: r, option: a = {}, value: o, dateType: u } = t;
|
|
721
721
|
if (l)
|
|
722
|
-
if (
|
|
723
|
-
e[l] =
|
|
724
|
-
else if (
|
|
725
|
-
if (
|
|
726
|
-
const [
|
|
727
|
-
let [
|
|
728
|
-
|
|
722
|
+
if (r == "input" && (a != null && a.multiple))
|
|
723
|
+
e[l] = ct(o);
|
|
724
|
+
else if (r == "date")
|
|
725
|
+
if (u.includes("range")) {
|
|
726
|
+
const [c, w] = l;
|
|
727
|
+
let [k, x] = o || [];
|
|
728
|
+
k && u == "daterange" && (k = be(k).format("YYYY-MM-DD 00:00:00"), x = be(x).format("YYYY-MM-DD 23:59:59")), e[c] = k, e[w] = x;
|
|
729
729
|
} else
|
|
730
|
-
e[l] =
|
|
730
|
+
e[l] = o;
|
|
731
731
|
else
|
|
732
|
-
e[l] =
|
|
732
|
+
e[l] = o;
|
|
733
733
|
}), e;
|
|
734
734
|
}
|
|
735
|
-
const
|
|
735
|
+
const tn = { key: 0 }, nn = { class: "btns" }, on = { class: "left" }, ln = { class: "right" }, rn = {
|
|
736
736
|
__name: "index",
|
|
737
737
|
props: {
|
|
738
738
|
form: {
|
|
@@ -742,84 +742,84 @@ const Zt = { key: 0 }, Gt = { class: "btns" }, Wt = { class: "left" }, Jt = { cl
|
|
|
742
742
|
},
|
|
743
743
|
emits: ["confirm", "reset", "visibleChange"],
|
|
744
744
|
setup(n, { expose: e, emit: t }) {
|
|
745
|
-
const l = n,
|
|
746
|
-
function
|
|
747
|
-
|
|
748
|
-
}
|
|
749
|
-
function g(f) {
|
|
750
|
-
f.option.onClear && f.option.onClear(), o("confirm");
|
|
745
|
+
const l = n, r = t, a = j(!0), o = j(null), { t: u } = de(), c = se(() => a.value ? u("guan-bi") : u("zhan-kai"));
|
|
746
|
+
function w() {
|
|
747
|
+
r("confirm");
|
|
751
748
|
}
|
|
752
|
-
function k() {
|
|
753
|
-
|
|
749
|
+
function k(f) {
|
|
750
|
+
f.option.onClear && f.option.onClear(), r("confirm");
|
|
754
751
|
}
|
|
755
752
|
function x() {
|
|
756
|
-
|
|
753
|
+
r("reset");
|
|
757
754
|
}
|
|
758
|
-
function
|
|
759
|
-
|
|
755
|
+
function y() {
|
|
756
|
+
r("confirm");
|
|
757
|
+
}
|
|
758
|
+
function p() {
|
|
759
|
+
return Me(l.form.items);
|
|
760
760
|
}
|
|
761
|
-
const
|
|
762
|
-
function
|
|
761
|
+
const m = nt(l.form.items);
|
|
762
|
+
function d() {
|
|
763
763
|
l.form.items.forEach((f) => {
|
|
764
|
-
const
|
|
765
|
-
|
|
764
|
+
const _ = m.find((h) => h.key == f.key);
|
|
765
|
+
_ && (f.value = _.value);
|
|
766
766
|
});
|
|
767
767
|
}
|
|
768
|
-
return e({ getPrm:
|
|
769
|
-
const h =
|
|
770
|
-
return L(),
|
|
768
|
+
return e({ getPrm: p, reset: d }), (f, _) => {
|
|
769
|
+
const h = z("el-input"), g = z("el-date-picker"), I = z("el-form-item"), E = z("el-form"), B = z("el-link"), C = z("el-button");
|
|
770
|
+
return L(), re("div", {
|
|
771
771
|
class: "searchBar-container mgt10 mgb10",
|
|
772
|
-
onKeydown:
|
|
772
|
+
onKeydown: _t(w, ["enter"])
|
|
773
773
|
}, [
|
|
774
|
-
|
|
774
|
+
ae("div", {
|
|
775
775
|
class: "searchBar",
|
|
776
|
-
style:
|
|
776
|
+
style: St({ height: a.value ? "auto" : "42px" })
|
|
777
777
|
}, [
|
|
778
|
-
|
|
778
|
+
W(E, {
|
|
779
779
|
inline: "",
|
|
780
780
|
model: n.form.data
|
|
781
781
|
}, {
|
|
782
|
-
default:
|
|
783
|
-
(L(!0),
|
|
784
|
-
key:
|
|
782
|
+
default: A(() => [
|
|
783
|
+
(L(!0), re(Le, null, Je(n.form.items.filter((v) => !v.hidden), (v) => (L(), re(Le, {
|
|
784
|
+
key: v.key
|
|
785
785
|
}, [
|
|
786
|
-
|
|
786
|
+
v.type == "br" ? (L(), re("br", tn)) : (L(), V(I, {
|
|
787
787
|
key: 1,
|
|
788
|
-
label:
|
|
788
|
+
label: v.name
|
|
789
789
|
}, {
|
|
790
|
-
default:
|
|
791
|
-
var
|
|
790
|
+
default: A(() => {
|
|
791
|
+
var Y, K;
|
|
792
792
|
return [
|
|
793
|
-
|
|
793
|
+
v.type === "input" ? (L(), V(h, {
|
|
794
794
|
key: 0,
|
|
795
|
-
modelValue:
|
|
796
|
-
"onUpdate:modelValue": (
|
|
797
|
-
class:
|
|
795
|
+
modelValue: v.value,
|
|
796
|
+
"onUpdate:modelValue": (P) => v.value = P,
|
|
797
|
+
class: De(((Y = v.option) == null ? void 0 : Y.class) || "w150"),
|
|
798
798
|
placeholder: f.$t("qing-shu-ru"),
|
|
799
799
|
clearable: ""
|
|
800
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "class", "placeholder"])) :
|
|
801
|
-
|
|
800
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "class", "placeholder"])) : v.type === "custom" ? (L(), V(Qe(v.render), { key: 1 })) : ce("", !0),
|
|
801
|
+
v.type === "select" ? (L(), V(Wt, ge({
|
|
802
802
|
key: 2,
|
|
803
|
-
class: ((
|
|
804
|
-
modelValue:
|
|
805
|
-
"onUpdate:modelValue": (
|
|
806
|
-
}, { ref_for: !0 },
|
|
807
|
-
onChange:
|
|
808
|
-
onClear: (
|
|
809
|
-
}), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onClear"])) :
|
|
810
|
-
|
|
803
|
+
class: ((K = v.option) == null ? void 0 : K.class) || "w150",
|
|
804
|
+
modelValue: v.value,
|
|
805
|
+
"onUpdate:modelValue": (P) => v.value = P
|
|
806
|
+
}, { ref_for: !0 }, v.option, {
|
|
807
|
+
onChange: w,
|
|
808
|
+
onClear: (P) => k(v)
|
|
809
|
+
}), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onClear"])) : ce("", !0),
|
|
810
|
+
v.type === "date" ? (L(), V(g, {
|
|
811
811
|
key: 3,
|
|
812
|
-
class:
|
|
813
|
-
modelValue:
|
|
814
|
-
"onUpdate:modelValue": (
|
|
815
|
-
"value-format": { datetimerange: "YYYY-MM-DD HH:mm:ss", daterange: "YYYY-MM-DD" }[
|
|
816
|
-
type:
|
|
817
|
-
onFocus: (
|
|
818
|
-
onChange: (
|
|
812
|
+
class: De({ datetimerange: "w300", daterange: "w200" }[v.dateType] || "w100"),
|
|
813
|
+
modelValue: v.value,
|
|
814
|
+
"onUpdate:modelValue": (P) => v.value = P,
|
|
815
|
+
"value-format": { datetimerange: "YYYY-MM-DD HH:mm:ss", daterange: "YYYY-MM-DD" }[v.dateType] || "YYYY-MM-DD",
|
|
816
|
+
type: v.dateType || "date",
|
|
817
|
+
onFocus: (P) => o.value = v,
|
|
818
|
+
onChange: (P) => y(),
|
|
819
819
|
placeholder: f.$t("qing-xuan-ze"),
|
|
820
820
|
"start-placeholder": f.$t("kai-shi-shi-jian"),
|
|
821
821
|
"end-placeholder": f.$t("jie-shu-shi-jian")
|
|
822
|
-
}, null, 8, ["class", "modelValue", "onUpdate:modelValue", "value-format", "type", "onFocus", "onChange", "placeholder", "start-placeholder", "end-placeholder"])) :
|
|
822
|
+
}, null, 8, ["class", "modelValue", "onUpdate:modelValue", "value-format", "type", "onFocus", "onChange", "placeholder", "start-placeholder", "end-placeholder"])) : ce("", !0)
|
|
823
823
|
];
|
|
824
824
|
}),
|
|
825
825
|
_: 2
|
|
@@ -829,58 +829,104 @@ const Zt = { key: 0 }, Gt = { class: "btns" }, Wt = { class: "left" }, Jt = { cl
|
|
|
829
829
|
_: 1
|
|
830
830
|
}, 8, ["model"])
|
|
831
831
|
], 4),
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
832
|
+
ae("div", nn, [
|
|
833
|
+
ae("div", on, [
|
|
834
|
+
ie(f.$slots, "table-header-left", {}, void 0, !0)
|
|
835
835
|
]),
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
ae("div", ln, [
|
|
837
|
+
W(B, {
|
|
838
838
|
underline: "never",
|
|
839
839
|
class: "mgr10",
|
|
840
|
-
onClick:
|
|
841
|
-
|
|
840
|
+
onClick: _[0] || (_[0] = () => {
|
|
841
|
+
r("visibleChange", !a.value), a.value = !a.value;
|
|
842
842
|
})
|
|
843
843
|
}, {
|
|
844
|
-
default:
|
|
845
|
-
|
|
846
|
-
name:
|
|
844
|
+
default: A(() => [
|
|
845
|
+
W(ut, {
|
|
846
|
+
name: a.value ? "ArrowUp" : "ArrowDown"
|
|
847
847
|
}, null, 8, ["name"]),
|
|
848
|
-
|
|
848
|
+
te(" " + ne(c.value), 1)
|
|
849
849
|
]),
|
|
850
850
|
_: 1
|
|
851
851
|
}),
|
|
852
|
-
|
|
852
|
+
W(C, {
|
|
853
853
|
type: "primary",
|
|
854
|
-
onClick:
|
|
854
|
+
onClick: w
|
|
855
855
|
}, {
|
|
856
|
-
default:
|
|
857
|
-
|
|
856
|
+
default: A(() => [
|
|
857
|
+
te(ne(f.$t("shai-xuan")), 1)
|
|
858
858
|
]),
|
|
859
859
|
_: 1
|
|
860
860
|
}),
|
|
861
|
-
|
|
861
|
+
W(C, {
|
|
862
862
|
type: "primary",
|
|
863
|
-
onClick:
|
|
863
|
+
onClick: x
|
|
864
864
|
}, {
|
|
865
|
-
default:
|
|
866
|
-
|
|
865
|
+
default: A(() => [
|
|
866
|
+
te(ne(f.$t("chong-zhi")), 1)
|
|
867
867
|
]),
|
|
868
868
|
_: 1
|
|
869
869
|
}),
|
|
870
|
-
|
|
870
|
+
ie(f.$slots, "btn", {}, void 0, !0)
|
|
871
871
|
])
|
|
872
872
|
])
|
|
873
873
|
], 32);
|
|
874
874
|
};
|
|
875
875
|
}
|
|
876
|
-
},
|
|
877
|
-
|
|
876
|
+
}, an = /* @__PURE__ */ pe(rn, [["__scopeId", "data-v-32ac9990"]]), dt = {
|
|
877
|
+
// 分页参数名
|
|
878
|
+
pageNoKey: "pageNo",
|
|
879
|
+
// 页码参数名
|
|
880
|
+
pageSizeKey: "pageSize",
|
|
881
|
+
// 每页条数参数名
|
|
882
|
+
totalKey: "total",
|
|
883
|
+
// 总条数字段名
|
|
884
|
+
// 分页默认值
|
|
885
|
+
defaultPageSize: 10,
|
|
886
|
+
pageSizes: [10, 50, 100, 500],
|
|
887
|
+
// 响应数据字段映射
|
|
888
|
+
responseDataKeys: {
|
|
889
|
+
rows: ["rows", "records"],
|
|
890
|
+
// 数据列表字段名(优先级从左到右)
|
|
891
|
+
total: ["totalRows", "total"]
|
|
892
|
+
// 总条数字段名
|
|
893
|
+
},
|
|
894
|
+
// UI 功能默认配置
|
|
895
|
+
showSearch: !1,
|
|
896
|
+
// 是否显示搜索栏
|
|
897
|
+
showPage: !1,
|
|
898
|
+
// 是否显示分页
|
|
899
|
+
showShadow: !1,
|
|
900
|
+
// 是否显示阴影
|
|
901
|
+
showCheckBox: !1,
|
|
902
|
+
// 是否显示复选框列
|
|
903
|
+
enableCellCopy: !0
|
|
904
|
+
// 是否启用单元格选区复制功能
|
|
905
|
+
};
|
|
906
|
+
let me = { ...dt };
|
|
907
|
+
function An(n) {
|
|
908
|
+
me = {
|
|
909
|
+
...me,
|
|
910
|
+
...n,
|
|
911
|
+
responseDataKeys: {
|
|
912
|
+
...me.responseDataKeys,
|
|
913
|
+
...n.responseDataKeys || {}
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
function sn() {
|
|
918
|
+
return me;
|
|
919
|
+
}
|
|
920
|
+
function Vn() {
|
|
921
|
+
me = { ...dt };
|
|
922
|
+
}
|
|
923
|
+
const cn = { class: "center" }, un = {
|
|
878
924
|
__name: "index",
|
|
879
925
|
props: {
|
|
880
|
-
// 表格id
|
|
926
|
+
// 表格id 本地存储列设置时使用,不传则使用路由路径自动生成
|
|
881
927
|
id: {
|
|
882
928
|
type: String,
|
|
883
|
-
required: !
|
|
929
|
+
required: !1
|
|
884
930
|
},
|
|
885
931
|
loading: {
|
|
886
932
|
type: Boolean,
|
|
@@ -895,13 +941,8 @@ const en = { class: "center" }, tn = {
|
|
|
895
941
|
type: Object,
|
|
896
942
|
default: () => ({
|
|
897
943
|
items: [],
|
|
898
|
-
selections: []
|
|
899
|
-
|
|
900
|
-
showPage: !1,
|
|
901
|
-
showShadow: !1,
|
|
902
|
-
showCheckBox: !1,
|
|
903
|
-
enableCellCopy: !0
|
|
904
|
-
// 是否启用单元格选区复制功能
|
|
944
|
+
selections: []
|
|
945
|
+
// UI 功能配置会从全局配置中读取默认值
|
|
905
946
|
})
|
|
906
947
|
},
|
|
907
948
|
api: {
|
|
@@ -916,91 +957,120 @@ const en = { class: "center" }, tn = {
|
|
|
916
957
|
}
|
|
917
958
|
},
|
|
918
959
|
setup(n, { expose: e }) {
|
|
919
|
-
const { t, locale: l } =
|
|
920
|
-
o.searchForm.
|
|
921
|
-
const
|
|
922
|
-
|
|
923
|
-
|
|
960
|
+
const { t, locale: l } = de(), r = Lt(), a = sn(), o = n, u = j(!1), c = j([]);
|
|
961
|
+
o.searchForm.showSearch === void 0 && (o.searchForm.showSearch = a.showSearch), o.searchForm.showPage === void 0 && (o.searchForm.showPage = a.showPage), o.searchForm.showShadow === void 0 && (o.searchForm.showShadow = a.showShadow), o.searchForm.showCheckBox === void 0 && (o.searchForm.showCheckBox = a.showCheckBox), o.searchForm.enableCellCopy === void 0 && (o.searchForm.enableCellCopy = a.enableCellCopy), o.searchForm.selections || (o.searchForm.selections = []);
|
|
962
|
+
const w = se(() => {
|
|
963
|
+
const i = r.path.replace(/\//g, "-").replace(/^-/, "") || "default-table";
|
|
964
|
+
return o.id ? `listPageId-${i}-${o.id}` : `listPageId-${i}`;
|
|
965
|
+
}), k = nt(o.searchForm.items), x = o.searchForm.pageNoKey || a.pageNoKey, y = o.searchForm.pageSizeKey || a.pageSizeKey, p = ve({
|
|
966
|
+
[x]: 1,
|
|
967
|
+
[y]: o.searchForm.defaultPageSize || a.defaultPageSize,
|
|
924
968
|
total: 0
|
|
925
|
-
}),
|
|
926
|
-
|
|
927
|
-
if (!
|
|
969
|
+
}), m = j(null), d = j(null), f = j(450), _ = tt(() => {
|
|
970
|
+
Fe(() => {
|
|
971
|
+
if (!d.value)
|
|
928
972
|
return;
|
|
929
|
-
const s =
|
|
930
|
-
|
|
973
|
+
const s = d.value.getBoundingClientRect(), b = window.innerHeight, F = s.top, M = 100, H = b - F - M, T = 200;
|
|
974
|
+
f.value = Math.max(H, T);
|
|
931
975
|
});
|
|
932
|
-
}, 100),
|
|
933
|
-
|
|
934
|
-
},
|
|
976
|
+
}, 100), h = () => {
|
|
977
|
+
_();
|
|
978
|
+
}, g = () => {
|
|
935
979
|
if (!o.searchForm.enableCellCopy)
|
|
936
980
|
return !1;
|
|
937
|
-
const
|
|
938
|
-
if (!
|
|
981
|
+
const i = m.value;
|
|
982
|
+
if (!i || !i.$el)
|
|
939
983
|
return !1;
|
|
940
|
-
const s =
|
|
941
|
-
return s.classList.add("cell-copy-enabled"), s.setAttribute("tabindex", "-1"), s.removeEventListener("mousedown",
|
|
984
|
+
const s = i.$el;
|
|
985
|
+
return s.classList.add("cell-copy-enabled"), s.setAttribute("tabindex", "-1"), s.removeEventListener("mousedown", xe), s.removeEventListener("mousemove", we), s.removeEventListener("mouseup", ke), s.removeEventListener("keydown", Se), s.addEventListener("mousedown", xe), s.addEventListener("mousemove", we), s.addEventListener("mouseup", ke), s.addEventListener("keydown", Se), !0;
|
|
942
986
|
};
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
987
|
+
We(() => {
|
|
988
|
+
_(), window.addEventListener("resize", h), o.searchForm.enableCellCopy && (document.addEventListener("mouseup", je), document.addEventListener("mousedown", qe), setTimeout(() => {
|
|
989
|
+
g();
|
|
946
990
|
}, 500));
|
|
947
|
-
}),
|
|
991
|
+
}), $t(() => {
|
|
948
992
|
o.searchForm.enableCellCopy && setTimeout(() => {
|
|
949
|
-
|
|
993
|
+
g();
|
|
950
994
|
}, 500);
|
|
951
|
-
}),
|
|
952
|
-
if (window.removeEventListener("resize",
|
|
953
|
-
document.removeEventListener("mouseup",
|
|
954
|
-
const
|
|
955
|
-
if (
|
|
956
|
-
const s =
|
|
957
|
-
s.removeEventListener("mousedown",
|
|
995
|
+
}), It(() => {
|
|
996
|
+
if (window.removeEventListener("resize", h), o.searchForm.enableCellCopy) {
|
|
997
|
+
document.removeEventListener("mouseup", je), document.removeEventListener("mousedown", qe);
|
|
998
|
+
const i = m.value;
|
|
999
|
+
if (i && i.$el) {
|
|
1000
|
+
const s = i.$el;
|
|
1001
|
+
s.removeEventListener("mousedown", xe), s.removeEventListener("mousemove", we), s.removeEventListener("mouseup", ke), s.removeEventListener("keydown", Se);
|
|
958
1002
|
}
|
|
959
1003
|
}
|
|
960
1004
|
});
|
|
961
|
-
const
|
|
962
|
-
let
|
|
963
|
-
async function
|
|
1005
|
+
const I = se(() => Ce.value.height || f.value);
|
|
1006
|
+
let E;
|
|
1007
|
+
async function B(i) {
|
|
964
1008
|
const { dataFormat: s } = o.tableConfig;
|
|
965
|
-
|
|
966
|
-
const { code:
|
|
967
|
-
|
|
1009
|
+
i[x] != 1 && (i.nextSearchAfter = E), u.value = !0;
|
|
1010
|
+
const { code: b, data: F = {} } = await o.api(i).finally(() => {
|
|
1011
|
+
u.value = !1, o.searchForm.selections = [];
|
|
968
1012
|
});
|
|
969
|
-
if (
|
|
970
|
-
let
|
|
971
|
-
|
|
1013
|
+
if (b == 200) {
|
|
1014
|
+
let M = [];
|
|
1015
|
+
for (const T of a.responseDataKeys.rows)
|
|
1016
|
+
if (F[T]) {
|
|
1017
|
+
M = F[T];
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
1020
|
+
let H = 0;
|
|
1021
|
+
for (const T of a.responseDataKeys.total)
|
|
1022
|
+
if (F[T] !== void 0) {
|
|
1023
|
+
H = F[T];
|
|
1024
|
+
break;
|
|
1025
|
+
}
|
|
1026
|
+
c.value = s ? s(M) : M, p.total = H, E = F.nextSearchAfter, o.searchForm.enableCellCopy && Fe(() => {
|
|
972
1027
|
setTimeout(() => {
|
|
973
|
-
|
|
1028
|
+
g();
|
|
974
1029
|
}, 100);
|
|
975
1030
|
});
|
|
976
1031
|
}
|
|
977
1032
|
}
|
|
978
|
-
function
|
|
979
|
-
const { searchData: s = () => ({}) } = o.tableConfig,
|
|
980
|
-
|
|
1033
|
+
function C(i = {}) {
|
|
1034
|
+
const { searchData: s = () => ({}) } = o.tableConfig, b = s();
|
|
1035
|
+
B({ ...p, ...Me(o.searchForm.items), ...i, ...b });
|
|
981
1036
|
}
|
|
982
|
-
function
|
|
983
|
-
const { reset:
|
|
984
|
-
|
|
985
|
-
const
|
|
986
|
-
|
|
987
|
-
}),
|
|
1037
|
+
function v() {
|
|
1038
|
+
const { reset: i } = o.tableConfig;
|
|
1039
|
+
i && i(), o.searchForm.items.forEach((s) => {
|
|
1040
|
+
const b = k.find((F) => Ne(s.key) && Ne(F.key) ? s.key.join(",") == F.key.join(",") : F.key == s.key);
|
|
1041
|
+
b && (s.value = b.value);
|
|
1042
|
+
}), C();
|
|
988
1043
|
}
|
|
989
|
-
o.api && o.immediate &&
|
|
990
|
-
function
|
|
991
|
-
return { ...
|
|
1044
|
+
o.api && o.immediate && C();
|
|
1045
|
+
function Y() {
|
|
1046
|
+
return { ...p, ...Me(o.searchForm.items) };
|
|
992
1047
|
}
|
|
993
|
-
const
|
|
994
|
-
const
|
|
995
|
-
|
|
996
|
-
},
|
|
1048
|
+
const K = () => {
|
|
1049
|
+
const i = m.value;
|
|
1050
|
+
i && i.clearSort();
|
|
1051
|
+
}, P = ve({
|
|
997
1052
|
storage: !0
|
|
998
|
-
}),
|
|
999
|
-
width: "auto",
|
|
1053
|
+
}), ye = ve({
|
|
1000
1054
|
drag: !0,
|
|
1001
1055
|
resizable: !0,
|
|
1002
1056
|
maxFixedSize: 0
|
|
1003
|
-
}),
|
|
1057
|
+
}), Ce = se(() => {
|
|
1058
|
+
const { customConfig: i, columnConfig: s, ...b } = o.tableConfig;
|
|
1059
|
+
return {
|
|
1060
|
+
headerAlign: "left",
|
|
1061
|
+
align: "center",
|
|
1062
|
+
customConfig: { ...P, ...i },
|
|
1063
|
+
columnConfig: { ...ye, ...s },
|
|
1064
|
+
// 列过多时 自动宽度 虚拟滚动会闪屏 关闭虚拟滚动
|
|
1065
|
+
"virtual-x-config": {
|
|
1066
|
+
enabled: !1,
|
|
1067
|
+
scrollToLeftOnChange: !1
|
|
1068
|
+
},
|
|
1069
|
+
// 纵向虚拟滚动 大于100条开启
|
|
1070
|
+
"virtual-y-config": { enabled: !0, gt: 100 },
|
|
1071
|
+
...b
|
|
1072
|
+
};
|
|
1073
|
+
}), S = ve({
|
|
1004
1074
|
isSelecting: !1,
|
|
1005
1075
|
// 是否正在选择
|
|
1006
1076
|
startCell: null,
|
|
@@ -1009,71 +1079,71 @@ const en = { class: "center" }, tn = {
|
|
|
1009
1079
|
// 结束单元格
|
|
1010
1080
|
selectedCells: []
|
|
1011
1081
|
// 选中的单元格列表 [{ rowIndex, colIndex }]
|
|
1012
|
-
}),
|
|
1013
|
-
const s =
|
|
1082
|
+
}), Ve = (i) => {
|
|
1083
|
+
const s = i.closest(".vxe-body--column");
|
|
1014
1084
|
if (!s || s.classList.contains("col--checkbox") || s.classList.contains("col--seq"))
|
|
1015
1085
|
return null;
|
|
1016
|
-
const
|
|
1017
|
-
if (!
|
|
1086
|
+
const b = s.closest(".vxe-body--row");
|
|
1087
|
+
if (!b)
|
|
1018
1088
|
return null;
|
|
1019
|
-
const
|
|
1020
|
-
if (!
|
|
1089
|
+
const F = m.value;
|
|
1090
|
+
if (!F)
|
|
1021
1091
|
return null;
|
|
1022
|
-
let
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1025
|
-
|
|
1092
|
+
let M = -1;
|
|
1093
|
+
const H = b.getAttribute("data-rowid");
|
|
1094
|
+
if (H != null)
|
|
1095
|
+
M = parseInt(H, 10);
|
|
1026
1096
|
else {
|
|
1027
|
-
const
|
|
1028
|
-
|
|
1097
|
+
const D = b.parentElement;
|
|
1098
|
+
M = Array.from(D.querySelectorAll(".vxe-body--row")).indexOf(b);
|
|
1029
1099
|
}
|
|
1030
|
-
if (
|
|
1100
|
+
if (M < 0)
|
|
1031
1101
|
return null;
|
|
1032
|
-
let
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1035
|
-
const
|
|
1036
|
-
if (
|
|
1037
|
-
const
|
|
1038
|
-
|
|
1039
|
-
} else if (
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1102
|
+
let T = -1;
|
|
1103
|
+
const ee = s.getAttribute("data-colid");
|
|
1104
|
+
if (ee && (T = F.getColumns().findIndex(($) => $.id === ee)), T < 0) {
|
|
1105
|
+
const $ = Array.from(b.querySelectorAll(".vxe-body--column")).indexOf(s), U = !!s.closest(".vxe-table--fixed-left-wrapper"), Z = !!s.closest(".vxe-table--fixed-right-wrapper"), R = F.getColumns();
|
|
1106
|
+
if (U) {
|
|
1107
|
+
const G = R.filter((q) => q.fixed === "left");
|
|
1108
|
+
$ < G.length && (T = R.indexOf(G[$]));
|
|
1109
|
+
} else if (Z) {
|
|
1110
|
+
const G = R.filter((q) => q.fixed === "right");
|
|
1111
|
+
$ < G.length && (T = R.indexOf(G[$]));
|
|
1042
1112
|
} else {
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1113
|
+
const G = o.searchForm.showCheckBox ? 1 : 0;
|
|
1114
|
+
T = R.filter((J) => J.fixed === "left").length + $ - G;
|
|
1045
1115
|
}
|
|
1046
1116
|
}
|
|
1047
|
-
return
|
|
1048
|
-
},
|
|
1049
|
-
const s =
|
|
1117
|
+
return T < 0 ? null : { rowIndex: M, colIndex: T, cell: s };
|
|
1118
|
+
}, xe = (i) => {
|
|
1119
|
+
const s = Ve(i.target);
|
|
1050
1120
|
if (!s) {
|
|
1051
|
-
|
|
1121
|
+
_e();
|
|
1052
1122
|
return;
|
|
1053
1123
|
}
|
|
1054
|
-
|
|
1124
|
+
S.isSelecting = !0, S.startCell = {
|
|
1055
1125
|
rowIndex: s.rowIndex,
|
|
1056
1126
|
colIndex: s.colIndex
|
|
1057
|
-
},
|
|
1058
|
-
},
|
|
1059
|
-
if (!
|
|
1127
|
+
}, S.endCell = { ...S.startCell }, Pe(), Ue();
|
|
1128
|
+
}, we = (i) => {
|
|
1129
|
+
if (!S.isSelecting)
|
|
1060
1130
|
return;
|
|
1061
|
-
const s =
|
|
1062
|
-
s && (
|
|
1131
|
+
const s = Ve(i.target);
|
|
1132
|
+
s && (S.endCell = {
|
|
1063
1133
|
rowIndex: s.rowIndex,
|
|
1064
1134
|
colIndex: s.colIndex
|
|
1065
|
-
},
|
|
1066
|
-
},
|
|
1067
|
-
|
|
1068
|
-
},
|
|
1069
|
-
|
|
1070
|
-
const
|
|
1071
|
-
if (!
|
|
1135
|
+
}, Pe(), Ue());
|
|
1136
|
+
}, ke = () => {
|
|
1137
|
+
S.isSelecting = !1;
|
|
1138
|
+
}, _e = () => {
|
|
1139
|
+
S.selectedCells = [], S.startCell = null, S.endCell = null;
|
|
1140
|
+
const i = m.value;
|
|
1141
|
+
if (!i)
|
|
1072
1142
|
return;
|
|
1073
|
-
|
|
1143
|
+
i.$el.querySelectorAll(
|
|
1074
1144
|
".cell-selected, .cell-border-top, .cell-border-right, .cell-border-bottom, .cell-border-left"
|
|
1075
|
-
).forEach((
|
|
1076
|
-
|
|
1145
|
+
).forEach((b) => {
|
|
1146
|
+
b.classList.remove(
|
|
1077
1147
|
"cell-selected",
|
|
1078
1148
|
"cell-border-top",
|
|
1079
1149
|
"cell-border-right",
|
|
@@ -1081,271 +1151,255 @@ const en = { class: "center" }, tn = {
|
|
|
1081
1151
|
"cell-border-left"
|
|
1082
1152
|
);
|
|
1083
1153
|
});
|
|
1084
|
-
},
|
|
1085
|
-
if (!
|
|
1086
|
-
|
|
1154
|
+
}, Pe = () => {
|
|
1155
|
+
if (!S.startCell || !S.endCell) {
|
|
1156
|
+
S.selectedCells = [];
|
|
1087
1157
|
return;
|
|
1088
1158
|
}
|
|
1089
|
-
const
|
|
1090
|
-
|
|
1091
|
-
for (let
|
|
1092
|
-
for (let
|
|
1093
|
-
|
|
1094
|
-
rowIndex:
|
|
1095
|
-
colIndex:
|
|
1159
|
+
const i = S.startCell.rowIndex, s = S.endCell.rowIndex, b = S.startCell.colIndex, F = S.endCell.colIndex, M = Math.min(i, s), H = Math.max(i, s), T = Math.min(b, F), ee = Math.max(b, F);
|
|
1160
|
+
S.selectedCells = [];
|
|
1161
|
+
for (let D = M; D <= H; D++)
|
|
1162
|
+
for (let $ = T; $ <= ee; $++)
|
|
1163
|
+
S.selectedCells.push({
|
|
1164
|
+
rowIndex: D,
|
|
1165
|
+
colIndex: $
|
|
1096
1166
|
});
|
|
1097
|
-
},
|
|
1098
|
-
|
|
1099
|
-
const
|
|
1100
|
-
if (!
|
|
1167
|
+
}, Ue = () => {
|
|
1168
|
+
Fe(() => {
|
|
1169
|
+
const i = m.value;
|
|
1170
|
+
if (!i)
|
|
1101
1171
|
return;
|
|
1102
|
-
const s =
|
|
1172
|
+
const s = i.$el;
|
|
1103
1173
|
if (s.querySelectorAll(
|
|
1104
1174
|
".cell-selected, .cell-border-top, .cell-border-right, .cell-border-bottom, .cell-border-left"
|
|
1105
|
-
).forEach((
|
|
1106
|
-
|
|
1175
|
+
).forEach((U) => {
|
|
1176
|
+
U.classList.remove(
|
|
1107
1177
|
"cell-selected",
|
|
1108
1178
|
"cell-border-top",
|
|
1109
1179
|
"cell-border-right",
|
|
1110
1180
|
"cell-border-bottom",
|
|
1111
1181
|
"cell-border-left"
|
|
1112
1182
|
);
|
|
1113
|
-
}),
|
|
1183
|
+
}), S.selectedCells.length === 0)
|
|
1114
1184
|
return;
|
|
1115
|
-
const
|
|
1185
|
+
const b = i.getColumns(), F = S.selectedCells.map((U) => U.rowIndex), M = S.selectedCells.map((U) => U.colIndex), H = Math.min(...F), T = Math.max(...F), ee = Math.min(...M), D = Math.max(...M), $ = [
|
|
1116
1186
|
s.querySelector(".vxe-table--body-wrapper tbody"),
|
|
1117
1187
|
s.querySelector(".vxe-table--fixed-left-wrapper tbody"),
|
|
1118
1188
|
s.querySelector(".vxe-table--fixed-right-wrapper tbody")
|
|
1119
1189
|
].filter(Boolean);
|
|
1120
|
-
|
|
1121
|
-
const
|
|
1122
|
-
if (!
|
|
1190
|
+
S.selectedCells.forEach(({ rowIndex: U, colIndex: Z }) => {
|
|
1191
|
+
const R = b[Z];
|
|
1192
|
+
if (!R)
|
|
1123
1193
|
return;
|
|
1124
|
-
const
|
|
1125
|
-
for (const
|
|
1126
|
-
const fe =
|
|
1194
|
+
const G = R.fixed === "left", q = R.fixed === "right";
|
|
1195
|
+
for (const J of $) {
|
|
1196
|
+
const fe = J.querySelectorAll(".vxe-body--row")[U];
|
|
1127
1197
|
if (!fe)
|
|
1128
1198
|
continue;
|
|
1129
|
-
const
|
|
1130
|
-
let
|
|
1131
|
-
if (
|
|
1132
|
-
const
|
|
1133
|
-
|
|
1134
|
-
} else if (
|
|
1135
|
-
const
|
|
1136
|
-
|
|
1137
|
-
} else if (!
|
|
1138
|
-
const
|
|
1139
|
-
|
|
1199
|
+
const oe = Array.from(fe.querySelectorAll(".vxe-body--column"));
|
|
1200
|
+
let O = null;
|
|
1201
|
+
if (G && J.closest(".vxe-table--fixed-left-wrapper")) {
|
|
1202
|
+
const Q = b.filter((X) => X.fixed === "left").indexOf(R);
|
|
1203
|
+
O = oe[Q];
|
|
1204
|
+
} else if (q && J.closest(".vxe-table--fixed-right-wrapper")) {
|
|
1205
|
+
const Q = b.filter((X) => X.fixed === "right").indexOf(R);
|
|
1206
|
+
O = oe[Q];
|
|
1207
|
+
} else if (!G && !q && J.closest(".vxe-table--body-wrapper")) {
|
|
1208
|
+
const le = o.searchForm.showCheckBox ? 1 : 0, Q = b.filter(($e) => $e.fixed === "left").length, X = Z - Q;
|
|
1209
|
+
O = oe[X + le];
|
|
1140
1210
|
}
|
|
1141
|
-
if (
|
|
1142
|
-
|
|
1211
|
+
if (O && !O.classList.contains("col--checkbox") && !O.classList.contains("col--seq")) {
|
|
1212
|
+
O.classList.add("cell-selected"), U === H && O.classList.add("cell-border-top"), U === T && O.classList.add("cell-border-bottom"), Z === ee && O.classList.add("cell-border-left"), Z === D && O.classList.add("cell-border-right");
|
|
1143
1213
|
break;
|
|
1144
1214
|
}
|
|
1145
1215
|
}
|
|
1146
1216
|
});
|
|
1147
1217
|
});
|
|
1148
|
-
},
|
|
1149
|
-
if (
|
|
1218
|
+
}, ht = async () => {
|
|
1219
|
+
if (S.selectedCells.length === 0)
|
|
1150
1220
|
return;
|
|
1151
|
-
const
|
|
1152
|
-
if (!
|
|
1221
|
+
const i = m.value;
|
|
1222
|
+
if (!i)
|
|
1153
1223
|
return;
|
|
1154
|
-
const s =
|
|
1155
|
-
(
|
|
1156
|
-
),
|
|
1157
|
-
(
|
|
1158
|
-
),
|
|
1224
|
+
const s = i.$el, b = i.getColumns(), F = [...new Set(S.selectedCells.map((D) => D.rowIndex))].sort(
|
|
1225
|
+
(D, $) => D - $
|
|
1226
|
+
), M = [...new Set(S.selectedCells.map((D) => D.colIndex))].sort(
|
|
1227
|
+
(D, $) => D - $
|
|
1228
|
+
), H = [
|
|
1159
1229
|
s.querySelector(".vxe-table--body-wrapper tbody"),
|
|
1160
1230
|
s.querySelector(".vxe-table--fixed-left-wrapper tbody"),
|
|
1161
1231
|
s.querySelector(".vxe-table--fixed-right-wrapper tbody")
|
|
1162
|
-
].filter(Boolean),
|
|
1163
|
-
|
|
1164
|
-
const
|
|
1165
|
-
|
|
1166
|
-
const
|
|
1167
|
-
if (!
|
|
1168
|
-
|
|
1232
|
+
].filter(Boolean), T = [];
|
|
1233
|
+
F.forEach((D) => {
|
|
1234
|
+
const $ = [];
|
|
1235
|
+
M.forEach((U) => {
|
|
1236
|
+
const Z = b[U];
|
|
1237
|
+
if (!Z) {
|
|
1238
|
+
$.push("");
|
|
1169
1239
|
return;
|
|
1170
1240
|
}
|
|
1171
|
-
const
|
|
1172
|
-
let
|
|
1173
|
-
for (const
|
|
1174
|
-
const fe =
|
|
1241
|
+
const R = Z.fixed === "left", G = Z.fixed === "right";
|
|
1242
|
+
let q = "";
|
|
1243
|
+
for (const J of H) {
|
|
1244
|
+
const fe = J.querySelectorAll(".vxe-body--row")[D];
|
|
1175
1245
|
if (!fe)
|
|
1176
1246
|
continue;
|
|
1177
|
-
const
|
|
1178
|
-
let
|
|
1179
|
-
if (
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1182
|
-
} else if (
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1185
|
-
} else if (!
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1247
|
+
const oe = Array.from(fe.querySelectorAll(".vxe-body--column"));
|
|
1248
|
+
let O = null;
|
|
1249
|
+
if (R && J.closest(".vxe-table--fixed-left-wrapper")) {
|
|
1250
|
+
const Q = b.filter((X) => X.fixed === "left").indexOf(Z);
|
|
1251
|
+
O = oe[Q];
|
|
1252
|
+
} else if (G && J.closest(".vxe-table--fixed-right-wrapper")) {
|
|
1253
|
+
const Q = b.filter((X) => X.fixed === "right").indexOf(Z);
|
|
1254
|
+
O = oe[Q];
|
|
1255
|
+
} else if (!R && !G && J.closest(".vxe-table--body-wrapper")) {
|
|
1256
|
+
const le = o.searchForm.showCheckBox ? 1 : 0, Q = b.filter(($e) => $e.fixed === "left").length, X = U - Q;
|
|
1257
|
+
O = oe[X + le];
|
|
1188
1258
|
}
|
|
1189
|
-
if (
|
|
1190
|
-
|
|
1259
|
+
if (O && !O.classList.contains("col--checkbox") && !O.classList.contains("col--seq")) {
|
|
1260
|
+
q = O.innerText || O.textContent || "", q = q.trim(), q = q.replace(/\n/g, " ").replace(/\s+/g, " ");
|
|
1191
1261
|
break;
|
|
1192
1262
|
}
|
|
1193
1263
|
}
|
|
1194
|
-
|
|
1195
|
-
}),
|
|
1264
|
+
$.push(q);
|
|
1265
|
+
}), T.push($.join(" "));
|
|
1196
1266
|
});
|
|
1197
|
-
const
|
|
1267
|
+
const ee = T.join(`
|
|
1198
1268
|
`);
|
|
1199
1269
|
try {
|
|
1200
|
-
await navigator.clipboard.writeText(
|
|
1201
|
-
} catch (
|
|
1202
|
-
console.error("复制失败:",
|
|
1270
|
+
await navigator.clipboard.writeText(ee);
|
|
1271
|
+
} catch (D) {
|
|
1272
|
+
console.error("复制失败:", D);
|
|
1203
1273
|
}
|
|
1204
|
-
},
|
|
1205
|
-
o.searchForm.enableCellCopy && ((
|
|
1206
|
-
},
|
|
1207
|
-
|
|
1208
|
-
},
|
|
1209
|
-
const s =
|
|
1274
|
+
}, Se = (i) => {
|
|
1275
|
+
o.searchForm.enableCellCopy && ((i.ctrlKey || i.metaKey) && i.key === "c" ? S.selectedCells.length > 0 && (i.preventDefault(), i.stopPropagation(), ht()) : i.key === "Escape" && _e());
|
|
1276
|
+
}, je = () => {
|
|
1277
|
+
S.isSelecting = !1;
|
|
1278
|
+
}, qe = (i) => {
|
|
1279
|
+
const s = m.value;
|
|
1210
1280
|
if (!s || !s.$el)
|
|
1211
1281
|
return;
|
|
1212
|
-
s.$el.contains(
|
|
1213
|
-
},
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
align: "center",
|
|
1218
|
-
customConfig: { ..._, ...c },
|
|
1219
|
-
columnConfig: { ...y, ...s },
|
|
1220
|
-
// 列过多时 自动宽度 虚拟滚动会闪屏 关闭虚拟滚动
|
|
1221
|
-
"virtual-x-config": {
|
|
1222
|
-
enabled: !1,
|
|
1223
|
-
scrollToLeftOnChange: !1
|
|
1224
|
-
},
|
|
1225
|
-
// 纵向虚拟滚动 大于100条开启
|
|
1226
|
-
"virtual-y-config": { enabled: !0, gt: 100 },
|
|
1227
|
-
...C
|
|
1228
|
-
};
|
|
1229
|
-
}), it = (c) => {
|
|
1230
|
-
v.pageNo = c, m();
|
|
1231
|
-
}, ct = (c) => {
|
|
1232
|
-
v.pageSize = c, v[i] = 1, m();
|
|
1282
|
+
s.$el.contains(i.target) || _e();
|
|
1283
|
+
}, mt = (i) => {
|
|
1284
|
+
p[x] = i, C();
|
|
1285
|
+
}, gt = (i) => {
|
|
1286
|
+
p[y] = i, p[x] = 1, C();
|
|
1233
1287
|
};
|
|
1234
|
-
function
|
|
1235
|
-
const
|
|
1236
|
-
o.searchForm.selections =
|
|
1288
|
+
function Be() {
|
|
1289
|
+
const i = m.value.getCheckboxRecords();
|
|
1290
|
+
o.searchForm.selections = i;
|
|
1237
1291
|
}
|
|
1238
|
-
const
|
|
1239
|
-
const s =
|
|
1292
|
+
const Ye = (i) => {
|
|
1293
|
+
const s = m.value;
|
|
1240
1294
|
if (s) {
|
|
1241
|
-
s.toggleCheckboxRow(
|
|
1242
|
-
const
|
|
1243
|
-
o.searchForm.selections =
|
|
1295
|
+
s.toggleCheckboxRow(i);
|
|
1296
|
+
const b = m.value.getCheckboxRecords();
|
|
1297
|
+
o.searchForm.selections = b;
|
|
1244
1298
|
}
|
|
1245
1299
|
};
|
|
1246
|
-
return e({ tableRef:
|
|
1247
|
-
var
|
|
1248
|
-
const
|
|
1249
|
-
return L(),
|
|
1250
|
-
class:
|
|
1300
|
+
return e({ tableRef: m, getList: C, getPrm: Y, clearSort: K, calculateTableHeight: _ }), (i, s) => {
|
|
1301
|
+
var D;
|
|
1302
|
+
const b = z("el-button"), F = z("el-checkbox"), M = z("el-text"), H = z("vxe-column"), T = z("VxeTable"), ee = z("el-pagination");
|
|
1303
|
+
return L(), re("div", {
|
|
1304
|
+
class: De({ box: n.searchForm.showShadow })
|
|
1251
1305
|
}, [
|
|
1252
|
-
n.searchForm.showSearch ? (L(),
|
|
1306
|
+
n.searchForm.showSearch ? (L(), V(an, {
|
|
1253
1307
|
key: 0,
|
|
1254
1308
|
form: n.searchForm,
|
|
1255
|
-
onReset:
|
|
1256
|
-
onConfirm: s[1] || (s[1] = (
|
|
1257
|
-
onVisibleChange:
|
|
1309
|
+
onReset: v,
|
|
1310
|
+
onConfirm: s[1] || (s[1] = ($) => C()),
|
|
1311
|
+
onVisibleChange: N(_)
|
|
1258
1312
|
}, {
|
|
1259
|
-
btn:
|
|
1260
|
-
|
|
1261
|
-
|
|
1313
|
+
btn: A(() => [
|
|
1314
|
+
ie(i.$slots, "search-bar-btn", {}, void 0, !0),
|
|
1315
|
+
W(b, {
|
|
1262
1316
|
round: "",
|
|
1263
|
-
onClick: s[0] || (s[0] = (
|
|
1317
|
+
onClick: s[0] || (s[0] = ($) => m.value.openCustom())
|
|
1264
1318
|
}, {
|
|
1265
|
-
default:
|
|
1266
|
-
|
|
1319
|
+
default: A(() => [
|
|
1320
|
+
W(ut, { name: "Tools" })
|
|
1267
1321
|
]),
|
|
1268
1322
|
_: 1
|
|
1269
1323
|
})
|
|
1270
1324
|
]),
|
|
1271
1325
|
_: 3
|
|
1272
|
-
}, 8, ["form", "onVisibleChange"])) :
|
|
1273
|
-
|
|
1274
|
-
|
|
1326
|
+
}, 8, ["form", "onVisibleChange"])) : ce("", !0),
|
|
1327
|
+
ie(i.$slots, "table-header-left", {}, void 0, !0),
|
|
1328
|
+
ae("div", {
|
|
1275
1329
|
ref_key: "tableContentRef",
|
|
1276
|
-
ref:
|
|
1330
|
+
ref: d
|
|
1277
1331
|
}, [
|
|
1278
|
-
|
|
1279
|
-
id:
|
|
1332
|
+
W(T, ge({
|
|
1333
|
+
id: w.value,
|
|
1280
1334
|
ref_key: "tableRef",
|
|
1281
|
-
ref:
|
|
1282
|
-
loading: n.loading ||
|
|
1283
|
-
data: n.api ?
|
|
1335
|
+
ref: m,
|
|
1336
|
+
loading: n.loading || u.value,
|
|
1337
|
+
data: n.api ? c.value : n.data,
|
|
1284
1338
|
border: ""
|
|
1285
|
-
},
|
|
1286
|
-
height:
|
|
1287
|
-
onCheckboxChange:
|
|
1288
|
-
onCheckboxAll:
|
|
1289
|
-
onSortChange: (
|
|
1339
|
+
}, Ce.value, {
|
|
1340
|
+
height: I.value,
|
|
1341
|
+
onCheckboxChange: Be,
|
|
1342
|
+
onCheckboxAll: Be,
|
|
1343
|
+
onSortChange: (D = Ce.value["sort-config"]) == null ? void 0 : D.sortChange
|
|
1290
1344
|
}), {
|
|
1291
|
-
default:
|
|
1292
|
-
n.searchForm.showCheckBox == null || n.searchForm.showCheckBox ? (L(),
|
|
1345
|
+
default: A(() => [
|
|
1346
|
+
n.searchForm.showCheckBox == null || n.searchForm.showCheckBox ? (L(), V(H, {
|
|
1293
1347
|
key: 0,
|
|
1294
1348
|
type: "checkbox",
|
|
1295
|
-
width:
|
|
1296
|
-
title:
|
|
1349
|
+
width: N(l) == "zh_cn" ? 80 : 150,
|
|
1350
|
+
title: i.$t("xu-hao"),
|
|
1297
1351
|
fixed: "left"
|
|
1298
1352
|
}, {
|
|
1299
|
-
checkbox:
|
|
1300
|
-
|
|
1301
|
-
|
|
1353
|
+
checkbox: A(({ rowIndex: $, row: U, checked: Z, disabled: R, indeterminate: G }) => [
|
|
1354
|
+
ae("div", cn, [
|
|
1355
|
+
Z ? (L(), V(F, {
|
|
1302
1356
|
key: 0,
|
|
1303
1357
|
checked: !0,
|
|
1304
|
-
disabled:
|
|
1358
|
+
disabled: R,
|
|
1305
1359
|
size: "default",
|
|
1306
|
-
onClick:
|
|
1307
|
-
}, null, 8, ["disabled", "onClick"])) : (L(),
|
|
1360
|
+
onClick: Te((q) => !R && Ye(U), ["stop"])
|
|
1361
|
+
}, null, 8, ["disabled", "onClick"])) : (L(), V(F, {
|
|
1308
1362
|
key: 1,
|
|
1309
|
-
disabled:
|
|
1363
|
+
disabled: R,
|
|
1310
1364
|
checked: !1,
|
|
1311
1365
|
size: "default",
|
|
1312
|
-
onClick:
|
|
1366
|
+
onClick: Te((q) => !R && Ye(U), ["stop"])
|
|
1313
1367
|
}, null, 8, ["disabled", "onClick"])),
|
|
1314
|
-
|
|
1368
|
+
W(M, {
|
|
1315
1369
|
type: "info",
|
|
1316
1370
|
class: "mgl5"
|
|
1317
1371
|
}, {
|
|
1318
|
-
default:
|
|
1319
|
-
|
|
1372
|
+
default: A(() => [
|
|
1373
|
+
te(ne($ + 1), 1)
|
|
1320
1374
|
]),
|
|
1321
1375
|
_: 2
|
|
1322
1376
|
}, 1024)
|
|
1323
1377
|
])
|
|
1324
1378
|
]),
|
|
1325
1379
|
_: 1
|
|
1326
|
-
}, 8, ["width", "title"])) :
|
|
1327
|
-
|
|
1380
|
+
}, 8, ["width", "title"])) : ce("", !0),
|
|
1381
|
+
ie(i.$slots, "default", {}, void 0, !0)
|
|
1328
1382
|
]),
|
|
1329
1383
|
_: 3
|
|
1330
1384
|
}, 16, ["id", "loading", "data", "height", "onSortChange"])
|
|
1331
1385
|
], 512),
|
|
1332
|
-
n.searchForm.showPage ? (L(),
|
|
1386
|
+
n.searchForm.showPage ? (L(), V(ee, {
|
|
1333
1387
|
key: 1,
|
|
1334
|
-
"current-page":
|
|
1335
|
-
"onUpdate:currentPage": s[2] || (s[2] = (
|
|
1388
|
+
"current-page": p[N(x)],
|
|
1389
|
+
"onUpdate:currentPage": s[2] || (s[2] = ($) => p[N(x)] = $),
|
|
1336
1390
|
class: "myPagination mgt10",
|
|
1337
1391
|
background: "",
|
|
1338
1392
|
layout: "total, sizes, prev, pager, next",
|
|
1339
|
-
total:
|
|
1340
|
-
"page-size":
|
|
1341
|
-
"page-sizes":
|
|
1342
|
-
onCurrentChange:
|
|
1343
|
-
onSizeChange:
|
|
1344
|
-
}, null, 8, ["current-page", "total", "page-size"])) :
|
|
1393
|
+
total: p.total,
|
|
1394
|
+
"page-size": p[N(y)],
|
|
1395
|
+
"page-sizes": n.searchForm.pageSizes || N(a).pageSizes,
|
|
1396
|
+
onCurrentChange: mt,
|
|
1397
|
+
onSizeChange: gt
|
|
1398
|
+
}, null, 8, ["current-page", "total", "page-size", "page-sizes"])) : ce("", !0)
|
|
1345
1399
|
], 2);
|
|
1346
1400
|
};
|
|
1347
1401
|
}
|
|
1348
|
-
},
|
|
1402
|
+
}, Pn = /* @__PURE__ */ pe(un, [["__scopeId", "data-v-de0d59d6"]]), Un = {
|
|
1349
1403
|
__name: "index",
|
|
1350
1404
|
props: {
|
|
1351
1405
|
sheetsConfig: {
|
|
@@ -1360,41 +1414,41 @@ const en = { class: "center" }, tn = {
|
|
|
1360
1414
|
setup(n) {
|
|
1361
1415
|
const e = n;
|
|
1362
1416
|
function t() {
|
|
1363
|
-
|
|
1417
|
+
qt(e.fileName, e.sheetsConfig);
|
|
1364
1418
|
}
|
|
1365
|
-
return (l,
|
|
1366
|
-
const
|
|
1367
|
-
return L(),
|
|
1419
|
+
return (l, r) => {
|
|
1420
|
+
const a = z("el-link");
|
|
1421
|
+
return L(), V(a, ge({
|
|
1368
1422
|
type: "primary",
|
|
1369
1423
|
underline: "never"
|
|
1370
1424
|
}, l.$attrs, { onClick: t }), {
|
|
1371
|
-
default:
|
|
1372
|
-
|
|
1425
|
+
default: A(() => [
|
|
1426
|
+
te(ne(l.$t("xia-zai-dao-ru-mo-ban")), 1)
|
|
1373
1427
|
]),
|
|
1374
1428
|
_: 1
|
|
1375
1429
|
}, 16);
|
|
1376
1430
|
};
|
|
1377
1431
|
}
|
|
1378
1432
|
};
|
|
1379
|
-
function
|
|
1380
|
-
const t =
|
|
1433
|
+
function jn(n, e = {}) {
|
|
1434
|
+
const t = Ae(), l = {
|
|
1381
1435
|
inForm: !0,
|
|
1382
1436
|
required: !0,
|
|
1383
1437
|
...e
|
|
1384
|
-
},
|
|
1438
|
+
}, r = {
|
|
1385
1439
|
phone: /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/,
|
|
1386
1440
|
password: /(?=.*\d)(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,12}/,
|
|
1387
1441
|
email: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
|
|
1388
|
-
}[n], { inForm:
|
|
1389
|
-
return
|
|
1390
|
-
if (
|
|
1391
|
-
|
|
1442
|
+
}[n], { inForm: a, value: o, required: u, msg: c = t("validate.invalidInput") } = l;
|
|
1443
|
+
return a ? function(w, k, x) {
|
|
1444
|
+
if (u) {
|
|
1445
|
+
r.test(k) ? x() : x(new Error(c));
|
|
1392
1446
|
return;
|
|
1393
1447
|
}
|
|
1394
|
-
|
|
1395
|
-
} :
|
|
1448
|
+
k && !r.test(k) ? x(new Error(c)) : x();
|
|
1449
|
+
} : r.test(o);
|
|
1396
1450
|
}
|
|
1397
|
-
class
|
|
1451
|
+
class qn {
|
|
1398
1452
|
constructor(e = {}) {
|
|
1399
1453
|
this.config = {
|
|
1400
1454
|
clientCode: e.clientCode || "one-portal",
|
|
@@ -1541,10 +1595,10 @@ class On {
|
|
|
1541
1595
|
};
|
|
1542
1596
|
l.headers.appId = this.config.clientCode, this.token && (l.headers.Authorization = `Bearer ${this.token}`);
|
|
1543
1597
|
try {
|
|
1544
|
-
const
|
|
1545
|
-
return
|
|
1546
|
-
} catch (
|
|
1547
|
-
throw this.log("请求失败:",
|
|
1598
|
+
const r = await fetch(e, l);
|
|
1599
|
+
return r.status === 401 ? (this.log("Token已过期,需要重新登录"), this.logout(), null) : r;
|
|
1600
|
+
} catch (r) {
|
|
1601
|
+
throw this.log("请求失败:", r), r;
|
|
1548
1602
|
}
|
|
1549
1603
|
}
|
|
1550
1604
|
/**
|
|
@@ -1600,61 +1654,61 @@ class On {
|
|
|
1600
1654
|
return this.config[e];
|
|
1601
1655
|
}
|
|
1602
1656
|
}
|
|
1603
|
-
function
|
|
1657
|
+
function Bn(n, e = {}) {
|
|
1604
1658
|
const l = Object.assign({
|
|
1605
1659
|
manual: !1,
|
|
1606
1660
|
// 手动执行
|
|
1607
1661
|
log: !1,
|
|
1608
1662
|
params: null,
|
|
1609
1663
|
format: null
|
|
1610
|
-
}, e), { manual:
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
const { code:
|
|
1614
|
-
if (
|
|
1615
|
-
const { records: h, rows:
|
|
1616
|
-
|
|
1664
|
+
}, e), { manual: r, log: a, params: o = {}, cb: u, format: c } = l, w = j([]), k = j(!1), x = (y) => {
|
|
1665
|
+
const p = y || o;
|
|
1666
|
+
k.value = !0, n(p).then((m) => {
|
|
1667
|
+
const { code: d, data: f, msg: _ } = m;
|
|
1668
|
+
if (u) {
|
|
1669
|
+
const { records: h, rows: g } = f || {}, I = h || g ? h || g : f;
|
|
1670
|
+
w.value = Ee(I, c), u(m);
|
|
1617
1671
|
}
|
|
1618
1672
|
if (f) {
|
|
1619
1673
|
if (f.records != null || f.rows != null) {
|
|
1620
|
-
const { records: h, rows:
|
|
1621
|
-
|
|
1674
|
+
const { records: h, rows: g, total: I = 0 } = f || {};
|
|
1675
|
+
p && p.total != null && (o.total = parseInt(I)), w.value = Ee(h || g || [], c);
|
|
1622
1676
|
} else
|
|
1623
|
-
|
|
1624
|
-
|
|
1677
|
+
w.value = Ee(f, c);
|
|
1678
|
+
a && console.log("useRequest-res", w.value);
|
|
1625
1679
|
}
|
|
1626
|
-
}).catch((
|
|
1627
|
-
|
|
1680
|
+
}).catch((m) => {
|
|
1681
|
+
u && (console.log("useRequestErr", m), u({ code: 500 }));
|
|
1628
1682
|
}).finally(() => {
|
|
1629
|
-
|
|
1683
|
+
k.value = !1;
|
|
1630
1684
|
});
|
|
1631
1685
|
};
|
|
1632
|
-
return
|
|
1686
|
+
return r || x(), [k, w, x];
|
|
1633
1687
|
}
|
|
1634
|
-
function
|
|
1635
|
-
const e =
|
|
1636
|
-
return
|
|
1637
|
-
const
|
|
1638
|
-
t.value =
|
|
1688
|
+
function Yn(n) {
|
|
1689
|
+
const e = j(n), t = j(""), l = j("");
|
|
1690
|
+
return Xe(e, (r) => {
|
|
1691
|
+
const a = r || ["", ""];
|
|
1692
|
+
t.value = a[0], l.value = a[1];
|
|
1639
1693
|
}), [e, t, l];
|
|
1640
1694
|
}
|
|
1641
|
-
function
|
|
1695
|
+
function Kn(n) {
|
|
1642
1696
|
return Object.prototype.toString.call(n).slice(8, -1).toLowerCase();
|
|
1643
1697
|
}
|
|
1644
|
-
function
|
|
1698
|
+
function Ee(n, e) {
|
|
1645
1699
|
if (!e)
|
|
1646
1700
|
return n;
|
|
1647
1701
|
if (n instanceof Array)
|
|
1648
1702
|
return n.map((l) => {
|
|
1649
|
-
let
|
|
1650
|
-
return e.forEach((
|
|
1703
|
+
let r = {};
|
|
1704
|
+
return e.forEach((a) => r[a] = l[a]), r;
|
|
1651
1705
|
});
|
|
1652
1706
|
let t = {};
|
|
1653
1707
|
return e.forEach((l) => t[l] = n[l]), t;
|
|
1654
1708
|
}
|
|
1655
|
-
function
|
|
1656
|
-
const { locale: t } =
|
|
1657
|
-
return
|
|
1709
|
+
function Hn(n, e = []) {
|
|
1710
|
+
const { locale: t } = de(), l = j(n());
|
|
1711
|
+
return Xe(
|
|
1658
1712
|
[t, ...e],
|
|
1659
1713
|
() => {
|
|
1660
1714
|
l.value = n();
|
|
@@ -1662,38 +1716,38 @@ function Rn(n, e = []) {
|
|
|
1662
1716
|
{ immediate: !0 }
|
|
1663
1717
|
), l;
|
|
1664
1718
|
}
|
|
1665
|
-
function
|
|
1719
|
+
function Nn(n, e = "zh_cn", t = "en_us") {
|
|
1666
1720
|
if (!n)
|
|
1667
1721
|
return "-";
|
|
1668
|
-
const l = { en_us: t, zh_cn: e },
|
|
1669
|
-
return n[l[
|
|
1722
|
+
const l = { en_us: t, zh_cn: e }, a = it().global.locale.value;
|
|
1723
|
+
return n[l[a]] || n[e] || "-";
|
|
1670
1724
|
}
|
|
1671
|
-
function
|
|
1672
|
-
let t =
|
|
1673
|
-
return typeof n == "string" && n.length > 0 && (t =
|
|
1725
|
+
function Zn(n, e) {
|
|
1726
|
+
let t = Dt;
|
|
1727
|
+
return typeof n == "string" && n.length > 0 && (t = Re(n).mapState), ft(e, t);
|
|
1674
1728
|
}
|
|
1675
|
-
function
|
|
1676
|
-
let t =
|
|
1677
|
-
return typeof n == "string" && n.length > 0 && (t =
|
|
1729
|
+
function Gn(n, e) {
|
|
1730
|
+
let t = zt;
|
|
1731
|
+
return typeof n == "string" && n.length > 0 && (t = Re(n).mapGetters), ft(e, t);
|
|
1678
1732
|
}
|
|
1679
|
-
function
|
|
1680
|
-
let t =
|
|
1681
|
-
return typeof n == "string" && n.length > 0 && (t =
|
|
1733
|
+
function Wn(n, e) {
|
|
1734
|
+
let t = Ot;
|
|
1735
|
+
return typeof n == "string" && n.length > 0 && (t = Re(n).mapActions), dn(e, t);
|
|
1682
1736
|
}
|
|
1683
|
-
function
|
|
1684
|
-
const t =
|
|
1685
|
-
return Object.keys(l).forEach((
|
|
1686
|
-
const
|
|
1687
|
-
|
|
1688
|
-
}),
|
|
1737
|
+
function ft(n, e) {
|
|
1738
|
+
const t = ot(), l = e(n), r = {};
|
|
1739
|
+
return Object.keys(l).forEach((a) => {
|
|
1740
|
+
const o = l[a].bind({ $store: t });
|
|
1741
|
+
r[a] = se(o);
|
|
1742
|
+
}), r;
|
|
1689
1743
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const t =
|
|
1692
|
-
return Object.keys(l).forEach((
|
|
1693
|
-
|
|
1694
|
-
}),
|
|
1744
|
+
function dn(n, e) {
|
|
1745
|
+
const t = ot(), l = e(n), r = {};
|
|
1746
|
+
return Object.keys(l).forEach((a) => {
|
|
1747
|
+
r[a] = l[a].bind({ $store: t });
|
|
1748
|
+
}), r;
|
|
1695
1749
|
}
|
|
1696
|
-
const
|
|
1750
|
+
const fn = {
|
|
1697
1751
|
__name: "EnumRender",
|
|
1698
1752
|
props: {
|
|
1699
1753
|
renderOpts: {
|
|
@@ -1708,43 +1762,43 @@ const on = {
|
|
|
1708
1762
|
},
|
|
1709
1763
|
setup(n) {
|
|
1710
1764
|
const e = n, t = e.params.row[e.params.column.field];
|
|
1711
|
-
return (l,
|
|
1712
|
-
const
|
|
1713
|
-
return n.renderOpts.text ? (L(),
|
|
1714
|
-
default:
|
|
1715
|
-
|
|
1765
|
+
return (l, r) => {
|
|
1766
|
+
const a = z("el-text");
|
|
1767
|
+
return n.renderOpts.text ? (L(), V(a, { key: 0 }, {
|
|
1768
|
+
default: A(() => [
|
|
1769
|
+
te(ne(n.renderOpts.enum.getName(N(t))), 1)
|
|
1716
1770
|
]),
|
|
1717
1771
|
_: 1
|
|
1718
|
-
})) : (L(),
|
|
1772
|
+
})) : (L(), V(a, {
|
|
1719
1773
|
key: 1,
|
|
1720
|
-
type: n.renderOpts.enum.getTag(
|
|
1774
|
+
type: n.renderOpts.enum.getTag(N(t))
|
|
1721
1775
|
}, {
|
|
1722
|
-
default:
|
|
1723
|
-
|
|
1776
|
+
default: A(() => [
|
|
1777
|
+
te(ne(n.renderOpts.enum.getName(N(t))), 1)
|
|
1724
1778
|
]),
|
|
1725
1779
|
_: 1
|
|
1726
1780
|
}, 8, ["type"]));
|
|
1727
1781
|
};
|
|
1728
1782
|
}
|
|
1729
1783
|
};
|
|
1730
|
-
function
|
|
1784
|
+
function Jn() {
|
|
1731
1785
|
he.renderer.add("Enum", {
|
|
1732
1786
|
// 默认显示模板
|
|
1733
1787
|
renderTableDefault(n, e) {
|
|
1734
|
-
return [null, void 0].includes(e.row[e.column.field]) ? "-" : /* @__PURE__ */ React.createElement(
|
|
1788
|
+
return [null, void 0].includes(e.row[e.column.field]) ? "-" : /* @__PURE__ */ React.createElement(fn, { renderOpts: n, params: e });
|
|
1735
1789
|
}
|
|
1736
1790
|
}), he.renderer.add("InputNumber", {
|
|
1737
1791
|
// 默认显示模板
|
|
1738
1792
|
renderTableDefault(n, e) {
|
|
1739
|
-
return /* @__PURE__ */ React.createElement(
|
|
1793
|
+
return /* @__PURE__ */ React.createElement(Ct, { "v-model": e.row[e.column.field], ...n.props, "step-strictly": !0, "value-on-clear": 0 });
|
|
1740
1794
|
}
|
|
1741
1795
|
}), he.renderer.add("TrueFalse", {
|
|
1742
1796
|
// 默认显示模板
|
|
1743
1797
|
renderTableDefault(n, e) {
|
|
1744
|
-
const { locale: t } =
|
|
1798
|
+
const { locale: t } = de();
|
|
1745
1799
|
let l = t.value == "zh_cn";
|
|
1746
1800
|
return /* @__PURE__ */ React.createElement(
|
|
1747
|
-
|
|
1801
|
+
xt,
|
|
1748
1802
|
{
|
|
1749
1803
|
type: e.row[e.column.field] ? "success" : "danger"
|
|
1750
1804
|
},
|
|
@@ -1754,77 +1808,80 @@ function qn() {
|
|
|
1754
1808
|
}), he.renderer.add("I18n", {
|
|
1755
1809
|
// 默认显示模板
|
|
1756
1810
|
renderTableDefault(n, e) {
|
|
1757
|
-
const { locale: t } =
|
|
1811
|
+
const { locale: t } = de();
|
|
1758
1812
|
let l = t.value == "zh_cn" ? e.column.field : n.fieldEn;
|
|
1759
1813
|
return e.row[l] || e.row[e.column.field];
|
|
1760
1814
|
}
|
|
1761
1815
|
}), he.renderer.add("Link", {
|
|
1762
1816
|
// 默认显示模板
|
|
1763
1817
|
renderTableDefault(n, e) {
|
|
1764
|
-
var
|
|
1818
|
+
var u;
|
|
1765
1819
|
let t = e.column.field;
|
|
1766
|
-
const l =
|
|
1767
|
-
if (!
|
|
1820
|
+
const l = Tt(), { multiple: r, to: a } = n;
|
|
1821
|
+
if (!r)
|
|
1768
1822
|
return /* @__PURE__ */ React.createElement(
|
|
1769
|
-
|
|
1823
|
+
Ke,
|
|
1770
1824
|
{
|
|
1771
1825
|
underline: "never",
|
|
1772
1826
|
type: "primary",
|
|
1773
|
-
onclick: () => l.push({ path:
|
|
1827
|
+
onclick: () => l.push({ path: a, query: { [t]: e.row[t] } })
|
|
1774
1828
|
},
|
|
1775
1829
|
e.row[t]
|
|
1776
1830
|
);
|
|
1777
|
-
const
|
|
1778
|
-
return
|
|
1779
|
-
|
|
1831
|
+
const o = ((u = e.row[t]) == null ? void 0 : u.split(",")) || [];
|
|
1832
|
+
return o.map((c, w) => /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
|
|
1833
|
+
Ke,
|
|
1780
1834
|
{
|
|
1781
1835
|
underline: "never",
|
|
1782
1836
|
type: "primary",
|
|
1783
|
-
onclick: () => l.push({ path:
|
|
1837
|
+
onclick: () => l.push({ path: a, query: { [t]: c } })
|
|
1784
1838
|
},
|
|
1785
|
-
|
|
1786
|
-
),
|
|
1839
|
+
c
|
|
1840
|
+
), w < o.length - 1 ? "," : ""));
|
|
1787
1841
|
}
|
|
1788
1842
|
});
|
|
1789
1843
|
}
|
|
1790
1844
|
export {
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1845
|
+
Wt as CmpDictionary,
|
|
1846
|
+
ut as CmpIcon,
|
|
1847
|
+
Mn as ConfrimButton,
|
|
1848
|
+
Un as DownExcelTemp,
|
|
1849
|
+
Rn as ImportButton,
|
|
1850
|
+
kn as LayOutForm,
|
|
1851
|
+
Pn as ListPage,
|
|
1852
|
+
qn as OnePortalCasSDK,
|
|
1853
|
+
an as SearchBar,
|
|
1854
|
+
Ze as StatusMap,
|
|
1855
|
+
$n as _toRaw,
|
|
1856
|
+
Kn as _typeOf,
|
|
1857
|
+
Fn as arrToStatusMap,
|
|
1858
|
+
In as arrayToTree,
|
|
1859
|
+
Tn as checkFileSize,
|
|
1860
|
+
jn as creatValidator,
|
|
1861
|
+
zn as createImportFields,
|
|
1862
|
+
Dn as createListPageId,
|
|
1863
|
+
Oe as en,
|
|
1864
|
+
qt as exportExcel,
|
|
1865
|
+
it as getI18n,
|
|
1866
|
+
Ae as getI18nT,
|
|
1867
|
+
sn as getListPageConfig,
|
|
1868
|
+
Nn as getLocaleValue,
|
|
1869
|
+
On as getValueBykey,
|
|
1870
|
+
_n as importExcel,
|
|
1871
|
+
Pt as messages,
|
|
1872
|
+
Jn as registerVxeRenderers,
|
|
1873
|
+
Vn as resetListPageConfig,
|
|
1874
|
+
An as setListPageConfig,
|
|
1875
|
+
Ut as setupI18n,
|
|
1876
|
+
Sn as sleep,
|
|
1877
|
+
ct as stringToArray,
|
|
1878
|
+
En as stripHtmlTags,
|
|
1879
|
+
Ln as unicode2Str,
|
|
1880
|
+
Wn as useActions,
|
|
1881
|
+
Yn as useDatePicker,
|
|
1882
|
+
Gn as useGetters,
|
|
1883
|
+
Hn as useI18nReState,
|
|
1884
|
+
Bn as useRequest,
|
|
1885
|
+
Zn as useState,
|
|
1886
|
+
ze as zhCn
|
|
1830
1887
|
};
|