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