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