joy-admin-components 0.2.23 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/joy-admin-components.es.js +537 -537
- package/dist/joy-admin-components.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ElForm as _t, ElRow as $t, ElCol as St, ElMessageBox as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { saveAs as
|
|
1
|
+
import { ElForm as _t, ElRow as $t, ElCol as St, ElMessageBox as Ft, ElInputNumber as Et, ElText as It, ElLink as Xe } from "element-plus";
|
|
2
|
+
import { defineComponent as lt, ref as R, onMounted as at, h as De, mergeModels as Qe, useAttrs as Lt, useModel as Tt, computed as se, watch as Re, resolveComponent as M, unref as K, openBlock as I, createBlock as H, mergeProps as he, createSlots as rt, withCtx as D, createElementVNode as ae, toDisplayString as J, renderSlot as X, createVNode as z, createTextVNode as Q, createCommentVNode as ce, createElementBlock as re, Fragment as Oe, renderList as st, withModifiers as Ve, nextTick as Fe, resolveDynamicComponent as it, withKeys as Dt, normalizeStyle as zt, normalizeClass as qe, reactive as Se, onUpdated as Mt, onUnmounted as Ot, withDirectives as Vt, isVNode as qt } from "vue";
|
|
3
|
+
import { saveAs as ct } from "file-saver";
|
|
4
4
|
import Ee from "exceljs";
|
|
5
|
-
import
|
|
5
|
+
import _e from "dayjs";
|
|
6
6
|
import { createI18n as At, useI18n as me } from "vue-i18n";
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { useRoute as
|
|
9
|
-
import { createNamespacedHelpers as
|
|
10
|
-
import { VxeUI as
|
|
11
|
-
const
|
|
7
|
+
import { debounce as Be, cloneDeep as ye, isArray as et } from "lodash";
|
|
8
|
+
import { useRoute as Ut, useRouter as jt } from "vue-router";
|
|
9
|
+
import { createNamespacedHelpers as Ye, useStore as ut, mapState as Pt, mapGetters as Rt, mapActions as Bt } from "vuex";
|
|
10
|
+
import { VxeUI as xe } from "vxe-pc-ui";
|
|
11
|
+
const Vo = lt({
|
|
12
12
|
name: "LayOutForm",
|
|
13
|
-
setup(t, { slots: e, attrs:
|
|
14
|
-
const r = R(null),
|
|
13
|
+
setup(t, { slots: e, attrs: o, emit: a }) {
|
|
14
|
+
const r = R(null), n = () => e.default ? e.default().filter((s) => s.type !== Symbol.for("v-cmt")).map((s) => s.type === Symbol.for("v-fgt") ? s.children : s).flat().map(
|
|
15
15
|
(s) => {
|
|
16
16
|
var i;
|
|
17
|
-
return
|
|
17
|
+
return De(
|
|
18
18
|
St,
|
|
19
19
|
{ span: ((i = s.props) == null ? void 0 : i.span) || 24 },
|
|
20
20
|
{
|
|
@@ -23,14 +23,14 @@ const Vn = ot({
|
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
) : null;
|
|
26
|
-
|
|
26
|
+
at(() => {
|
|
27
27
|
a("ref", r.value);
|
|
28
28
|
});
|
|
29
29
|
function l() {
|
|
30
|
-
return
|
|
30
|
+
return De(
|
|
31
31
|
_t,
|
|
32
|
-
{ ...
|
|
33
|
-
() =>
|
|
32
|
+
{ ...o, ref: r },
|
|
33
|
+
() => De($t, { gutter: o.gutter ?? 20 }, { default: () => n() })
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
return l;
|
|
@@ -42,18 +42,18 @@ function ft(t) {
|
|
|
42
42
|
}
|
|
43
43
|
var ht = { exports: {} };
|
|
44
44
|
(function(t, e) {
|
|
45
|
-
(function(
|
|
45
|
+
(function(o, a) {
|
|
46
46
|
t.exports = a();
|
|
47
47
|
})(dt, function() {
|
|
48
|
-
var
|
|
49
|
-
return function(
|
|
48
|
+
var o = "minute", a = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
49
|
+
return function(n, l, s) {
|
|
50
50
|
var i = l.prototype;
|
|
51
51
|
s.utc = function(u) {
|
|
52
52
|
var h = { date: u, utc: !0, args: arguments };
|
|
53
53
|
return new l(h);
|
|
54
54
|
}, i.utc = function(u) {
|
|
55
55
|
var h = s(this.toDate(), { locale: this.$L, utc: !0 });
|
|
56
|
-
return u ? h.add(this.utcOffset(),
|
|
56
|
+
return u ? h.add(this.utcOffset(), o) : h;
|
|
57
57
|
}, i.local = function() {
|
|
58
58
|
return s(this.toDate(), { locale: this.$L, utc: !1 });
|
|
59
59
|
};
|
|
@@ -74,9 +74,9 @@ var ht = { exports: {} };
|
|
|
74
74
|
var k = this.$utils().u;
|
|
75
75
|
if (k(u))
|
|
76
76
|
return this.$u ? 0 : k(this.$offset) ? b.call(this) : this.$offset;
|
|
77
|
-
if (typeof u == "string" && (u = function(
|
|
78
|
-
|
|
79
|
-
var B =
|
|
77
|
+
if (typeof u == "string" && (u = function(F) {
|
|
78
|
+
F === void 0 && (F = "");
|
|
79
|
+
var B = F.match(a);
|
|
80
80
|
if (!B)
|
|
81
81
|
return null;
|
|
82
82
|
var L = ("" + B[0]).match(r) || ["-", 0, 0], d = L[0], C = 60 * +L[1] + +L[2];
|
|
@@ -90,7 +90,7 @@ var ht = { exports: {} };
|
|
|
90
90
|
if (h)
|
|
91
91
|
return x.$offset = _, x.$u = !1, x;
|
|
92
92
|
var S = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
93
|
-
return (x = this.local().add(_ + S,
|
|
93
|
+
return (x = this.local().add(_ + S, o)).$offset = _, x.$x.$localOffset = S, x;
|
|
94
94
|
};
|
|
95
95
|
var p = i.format;
|
|
96
96
|
i.format = function(u) {
|
|
@@ -124,27 +124,27 @@ var Yt = ht.exports;
|
|
|
124
124
|
const Kt = /* @__PURE__ */ ft(Yt);
|
|
125
125
|
var mt = { exports: {} };
|
|
126
126
|
(function(t, e) {
|
|
127
|
-
(function(
|
|
127
|
+
(function(o, a) {
|
|
128
128
|
t.exports = a();
|
|
129
129
|
})(dt, function() {
|
|
130
|
-
var
|
|
131
|
-
return function(r,
|
|
130
|
+
var o = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, a = {};
|
|
131
|
+
return function(r, n, l) {
|
|
132
132
|
var s, i = function(p, g, m) {
|
|
133
133
|
m === void 0 && (m = {});
|
|
134
134
|
var u = new Date(p), h = function(k, _) {
|
|
135
135
|
_ === void 0 && (_ = {});
|
|
136
|
-
var x = _.timeZoneName || "short", S = k + "|" + x,
|
|
137
|
-
return
|
|
136
|
+
var x = _.timeZoneName || "short", S = k + "|" + x, F = a[S];
|
|
137
|
+
return F || (F = 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: x }), a[S] = F), F;
|
|
138
138
|
}(g, m);
|
|
139
139
|
return h.formatToParts(u);
|
|
140
140
|
}, v = function(p, g) {
|
|
141
141
|
for (var m = i(p, g), u = [], h = 0; h < m.length; h += 1) {
|
|
142
|
-
var k = m[h], _ = k.type, x = k.value, S =
|
|
142
|
+
var k = m[h], _ = k.type, x = k.value, S = o[_];
|
|
143
143
|
S >= 0 && (u[S] = parseInt(x, 10));
|
|
144
144
|
}
|
|
145
|
-
var
|
|
145
|
+
var F = u[3], B = F === 24 ? 0 : F, L = u[0] + "-" + u[1] + "-" + u[2] + " " + B + ":" + u[4] + ":" + u[5] + ":000", d = +p;
|
|
146
146
|
return (l.utc(L).valueOf() - (d -= d % 1e3)) / 6e4;
|
|
147
|
-
}, w =
|
|
147
|
+
}, w = n.prototype;
|
|
148
148
|
w.tz = function(p, g) {
|
|
149
149
|
p === void 0 && (p = s);
|
|
150
150
|
var m, u = this.utcOffset(), h = this.toDate(), k = h.toLocaleString("en-US", { timeZone: p }), _ = Math.round((h - new Date(k)) / 1e3 / 60), x = 15 * -Math.round(h.getTimezoneOffset() / 15) - _;
|
|
@@ -172,13 +172,13 @@ var mt = { exports: {} };
|
|
|
172
172
|
if (typeof p != "string")
|
|
173
173
|
return l(p).tz(h);
|
|
174
174
|
var _ = function(B, L, d) {
|
|
175
|
-
var C = B - 60 * L * 1e3,
|
|
176
|
-
if (L ===
|
|
175
|
+
var C = B - 60 * L * 1e3, O = v(C, d);
|
|
176
|
+
if (L === O)
|
|
177
177
|
return [C, L];
|
|
178
|
-
var A = v(C -= 60 * (
|
|
179
|
-
return
|
|
180
|
-
}(l.utc(p, u).valueOf(), k, h), x = _[0], S = _[1],
|
|
181
|
-
return
|
|
178
|
+
var A = v(C -= 60 * (O - L) * 1e3, d);
|
|
179
|
+
return O === A ? [C, O] : [B - 60 * Math.min(O, A) * 1e3, Math.max(O, A)];
|
|
180
|
+
}(l.utc(p, u).valueOf(), k, h), x = _[0], S = _[1], F = l(x).utcOffset(S);
|
|
181
|
+
return F.$x.$timezone = h, F;
|
|
182
182
|
}, l.tz.guess = function() {
|
|
183
183
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
184
184
|
}, l.tz.setDefault = function(p) {
|
|
@@ -188,7 +188,7 @@ var mt = { exports: {} };
|
|
|
188
188
|
});
|
|
189
189
|
})(mt);
|
|
190
190
|
var Ht = mt.exports;
|
|
191
|
-
const Nt = /* @__PURE__ */ ft(Ht),
|
|
191
|
+
const Nt = /* @__PURE__ */ ft(Ht), Ae = {
|
|
192
192
|
// 组件通用文本
|
|
193
193
|
"dao-ru": "导入",
|
|
194
194
|
"quan-xuan": "全选",
|
|
@@ -223,7 +223,7 @@ const Nt = /* @__PURE__ */ ft(Ht), qe = {
|
|
|
223
223
|
tools: {
|
|
224
224
|
keysLengthError: "keys 长度必须大于2 默认前两位为 label value"
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, Ue = {
|
|
227
227
|
// Common component text
|
|
228
228
|
"dao-ru": "Import",
|
|
229
229
|
"quan-xuan": "Select All",
|
|
@@ -259,69 +259,69 @@ const Nt = /* @__PURE__ */ ft(Ht), qe = {
|
|
|
259
259
|
keysLengthError: "Keys length must be greater than 2, default first two are label and value"
|
|
260
260
|
}
|
|
261
261
|
}, Wt = {
|
|
262
|
-
zh_cn:
|
|
263
|
-
en_us:
|
|
262
|
+
zh_cn: Ae,
|
|
263
|
+
en_us: Ue
|
|
264
264
|
};
|
|
265
|
-
let
|
|
265
|
+
let ve = null;
|
|
266
266
|
function Zt(t = null) {
|
|
267
267
|
if (t) {
|
|
268
268
|
const { global: e } = t;
|
|
269
|
-
return e.messages.value.zh_cn ? e.mergeLocaleMessage("zh_cn",
|
|
269
|
+
return e.messages.value.zh_cn ? e.mergeLocaleMessage("zh_cn", Ae) : e.setLocaleMessage("zh_cn", Ae), e.messages.value.en_us ? e.mergeLocaleMessage("en_us", Ue) : e.setLocaleMessage("en_us", Ue), ve = t, t;
|
|
270
270
|
}
|
|
271
|
-
return
|
|
271
|
+
return ve || (ve = At({
|
|
272
272
|
legacy: !1,
|
|
273
273
|
locale: "zh_cn",
|
|
274
274
|
fallbackLocale: "zh_cn",
|
|
275
275
|
messages: Wt
|
|
276
|
-
})),
|
|
276
|
+
})), ve;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
return
|
|
278
|
+
function Ke() {
|
|
279
|
+
return ve || Zt();
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
281
|
+
function be() {
|
|
282
|
+
return Ke().global.t;
|
|
283
283
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
async function
|
|
287
|
-
const { fields:
|
|
288
|
-
if (!
|
|
289
|
-
const l =
|
|
284
|
+
_e.extend(Kt);
|
|
285
|
+
_e.extend(Nt);
|
|
286
|
+
async function qo(t, e) {
|
|
287
|
+
const { fields: o, range: a = 1 } = e;
|
|
288
|
+
if (!o) {
|
|
289
|
+
const l = be();
|
|
290
290
|
throw new Error(l("excel.fieldsMappingRequired"));
|
|
291
291
|
}
|
|
292
292
|
let r = new Ee.Workbook();
|
|
293
293
|
await r.xlsx.load(t);
|
|
294
|
-
const
|
|
294
|
+
const n = {};
|
|
295
295
|
return r.eachSheet(function(l, s) {
|
|
296
296
|
const i = [];
|
|
297
297
|
l.eachRow(function(v, w) {
|
|
298
298
|
if (w > a) {
|
|
299
299
|
let b = {}, p = !0;
|
|
300
|
-
Object.keys(
|
|
301
|
-
const m = v.getCell(
|
|
300
|
+
Object.keys(o).forEach((g) => {
|
|
301
|
+
const m = v.getCell(o[g]).value;
|
|
302
302
|
b[g] = m, m && (p = !1);
|
|
303
303
|
}), p || i.push(b);
|
|
304
304
|
}
|
|
305
|
-
}),
|
|
306
|
-
}), r = null,
|
|
305
|
+
}), n[l._name] = i;
|
|
306
|
+
}), r = null, n;
|
|
307
307
|
}
|
|
308
308
|
const gt = {
|
|
309
309
|
columnWidth: 30
|
|
310
310
|
};
|
|
311
|
-
async function
|
|
311
|
+
async function Ao(t, e, o = [], a = {}) {
|
|
312
312
|
if (!t || !e)
|
|
313
313
|
return;
|
|
314
|
-
const { columnStyle: r } = a, { columnWidth:
|
|
314
|
+
const { columnStyle: r } = a, { columnWidth: n } = gt;
|
|
315
315
|
e.forEach((i) => {
|
|
316
|
-
i.width = i.width ? i.width :
|
|
316
|
+
i.width = i.width ? i.width : n;
|
|
317
317
|
});
|
|
318
318
|
const { workbook: l, worksheet: s } = Gt();
|
|
319
|
-
s.columns = e, s.addRows(
|
|
319
|
+
s.columns = e, s.addRows(o), r && await Jt(l, s, r);
|
|
320
320
|
try {
|
|
321
321
|
const i = await l.xlsx.writeBuffer(), v = new File([i], t, {
|
|
322
322
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
323
323
|
});
|
|
324
|
-
|
|
324
|
+
ct(v);
|
|
325
325
|
} catch (i) {
|
|
326
326
|
console.log(i);
|
|
327
327
|
}
|
|
@@ -332,10 +332,10 @@ function Gt() {
|
|
|
332
332
|
const e = t.addWorksheet("Sheet1");
|
|
333
333
|
return { workbook: t, worksheet: e };
|
|
334
334
|
}
|
|
335
|
-
async function Jt(t, e,
|
|
336
|
-
const a = Object.keys(
|
|
335
|
+
async function Jt(t, e, o) {
|
|
336
|
+
const a = Object.keys(o);
|
|
337
337
|
for (const r of a) {
|
|
338
|
-
const
|
|
338
|
+
const n = o[r], { type: l } = n;
|
|
339
339
|
switch (l) {
|
|
340
340
|
case "IMG":
|
|
341
341
|
await Xt(t, e, r);
|
|
@@ -343,15 +343,15 @@ async function Jt(t, e, n) {
|
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
async function Xt(t, e,
|
|
347
|
-
const r = e.getColumn(
|
|
348
|
-
e.getColumn(
|
|
346
|
+
async function Xt(t, e, o, a) {
|
|
347
|
+
const r = e.getColumn(o), n = r.values;
|
|
348
|
+
e.getColumn(o).width = 20, e.eachRow((l, s) => {
|
|
349
349
|
s > 1 && (l.height = 40);
|
|
350
350
|
});
|
|
351
|
-
for (let l = 0, s =
|
|
351
|
+
for (let l = 0, s = n.length; l < s; l++) {
|
|
352
352
|
if (l < 2)
|
|
353
353
|
continue;
|
|
354
|
-
let i =
|
|
354
|
+
let i = n[l];
|
|
355
355
|
i && (e.getCell(r.letter + l).value = "", await Qt(t, e, i, {
|
|
356
356
|
width: 100,
|
|
357
357
|
height: 50,
|
|
@@ -360,47 +360,47 @@ async function Xt(t, e, n, a) {
|
|
|
360
360
|
}));
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
async function Qt(t, e,
|
|
364
|
-
const { col: r, row:
|
|
363
|
+
async function Qt(t, e, o, a) {
|
|
364
|
+
const { col: r, row: n, width: l, height: s } = a, { success: i, base64: v } = await eo(o, 0.3);
|
|
365
365
|
if (i) {
|
|
366
366
|
const w = t.addImage({
|
|
367
367
|
base64: v,
|
|
368
368
|
extension: "jpeg"
|
|
369
369
|
});
|
|
370
370
|
e.addImage(w, {
|
|
371
|
-
tl: { col: r, row:
|
|
371
|
+
tl: { col: r, row: n },
|
|
372
372
|
ext: { width: l, height: s }
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const
|
|
378
|
-
return
|
|
379
|
-
|
|
380
|
-
const
|
|
381
|
-
|
|
376
|
+
function eo(t, e = 1) {
|
|
377
|
+
const o = new Image();
|
|
378
|
+
return o.setAttribute("crossOrigin", "anonymous"), o.crossOrigin = "anonymous", o.src = t, new Promise((a, r) => {
|
|
379
|
+
o.onload = () => {
|
|
380
|
+
const n = document.createElement("canvas");
|
|
381
|
+
n.width = o.width, n.height = o.height, n.getContext("2d").drawImage(o, 0, 0, n.width, n.height), a({
|
|
382
382
|
success: !0,
|
|
383
383
|
//canvas.toDataURL的方法将图片的绝对路径转换为base64编码
|
|
384
|
-
base64:
|
|
384
|
+
base64: n.toDataURL("image/jpeg", e)
|
|
385
385
|
});
|
|
386
|
-
},
|
|
386
|
+
}, o.onerror = () => {
|
|
387
387
|
a({ success: !1 });
|
|
388
388
|
};
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
const je = "---";
|
|
392
|
-
async function
|
|
393
|
-
const { fields:
|
|
394
|
-
if (!
|
|
395
|
-
const l =
|
|
392
|
+
async function to(t, e) {
|
|
393
|
+
const { fields: o, range: a = 1 } = e;
|
|
394
|
+
if (!o) {
|
|
395
|
+
const l = be();
|
|
396
396
|
throw new Error(l("excel.fieldsMappingRequired"));
|
|
397
397
|
}
|
|
398
398
|
let r = new Ee.Workbook();
|
|
399
399
|
await r.xlsx.load(t);
|
|
400
|
-
const
|
|
400
|
+
const n = {};
|
|
401
401
|
return r.eachSheet(function(l, s) {
|
|
402
402
|
if (l.state == "visible") {
|
|
403
|
-
const i = [], v =
|
|
403
|
+
const i = [], v = o[l._name];
|
|
404
404
|
if (v) {
|
|
405
405
|
let w = Object.values(v).some((p) => p.includes("image")), b = {};
|
|
406
406
|
w && (l.getImages().forEach((g) => {
|
|
@@ -413,7 +413,7 @@ async function tn(t, e) {
|
|
|
413
413
|
if (g > a) {
|
|
414
414
|
let m = {}, u = !0;
|
|
415
415
|
Object.keys(v).forEach((h) => {
|
|
416
|
-
var
|
|
416
|
+
var F;
|
|
417
417
|
let [k, _] = v[h].split(je);
|
|
418
418
|
const x = p.getCell(k);
|
|
419
419
|
let S;
|
|
@@ -421,21 +421,21 @@ async function tn(t, e) {
|
|
|
421
421
|
const B = x._column._number, L = `${g}_${B}`;
|
|
422
422
|
S = b[L] || "";
|
|
423
423
|
} else
|
|
424
|
-
x.result != null ? S = x.result : (
|
|
424
|
+
x.result != null ? S = x.result : (F = x.value) != null && F.richText ? S = x.value.richText.reduce((B, L) => B + L.text, "") : x.type == 4 && x.value ? S = _e(x.value).utc().format("YYYY-MM-DD HH:mm:ss") : S = x.value;
|
|
425
425
|
S && _ == "option" && (S = S.split(je)[1]), m[h] = S, S && (u = !1);
|
|
426
426
|
}), u || i.push(m);
|
|
427
427
|
}
|
|
428
|
-
}),
|
|
428
|
+
}), n[l._name] = i;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
}), r = null,
|
|
431
|
+
}), r = null, n;
|
|
432
432
|
}
|
|
433
|
-
async function
|
|
433
|
+
async function oo(t, e) {
|
|
434
434
|
if (!t || e.length == 0)
|
|
435
435
|
return;
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
const { columnWidth:
|
|
436
|
+
const o = no(e);
|
|
437
|
+
o.eachSheet(function(a, r) {
|
|
438
|
+
const { columnWidth: n } = gt, { tableHeader: l, tableData: s } = e[a._name];
|
|
439
439
|
l.forEach((i) => {
|
|
440
440
|
if (i.required) {
|
|
441
441
|
const v = i.style || {}, { font: w = {} } = v;
|
|
@@ -451,11 +451,11 @@ async function nn(t, e) {
|
|
|
451
451
|
}
|
|
452
452
|
}), a.columns = l, a.addRows(s), l.forEach((i) => {
|
|
453
453
|
const { header: v, key: w, width: b, option: p } = i, g = a.getColumn(w);
|
|
454
|
-
if (g.width = b ||
|
|
455
|
-
const m =
|
|
454
|
+
if (g.width = b || n, p) {
|
|
455
|
+
const m = o.addWorksheet(w);
|
|
456
456
|
m.state = "hidden", m.getColumn(1).values = p.map((u) => `${u.label}${je}${u.value}`), Array(100).fill("").forEach((u, h) => {
|
|
457
457
|
if (h > 0) {
|
|
458
|
-
const k =
|
|
458
|
+
const k = be();
|
|
459
459
|
a.getCell(`${g.letter}${h}`).dataValidation = {
|
|
460
460
|
type: "list",
|
|
461
461
|
formulae: [`${w}!$A$1:$A$${p.length}`],
|
|
@@ -470,80 +470,80 @@ async function nn(t, e) {
|
|
|
470
470
|
});
|
|
471
471
|
});
|
|
472
472
|
try {
|
|
473
|
-
const a = await
|
|
473
|
+
const a = await o.xlsx.writeBuffer(), r = new File([a], t, {
|
|
474
474
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
475
475
|
});
|
|
476
|
-
|
|
476
|
+
ct(r);
|
|
477
477
|
} catch (a) {
|
|
478
478
|
console.log(a);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
const e =
|
|
483
|
-
return
|
|
484
|
-
const l = t[r].sort ?? 0, s = t[
|
|
481
|
+
function no(t) {
|
|
482
|
+
const e = be(), o = new Ee.Workbook();
|
|
483
|
+
return o.creator = "distributor System", o.lastModifiedBy = "distributor System", o.created = /* @__PURE__ */ new Date(), o.modified = /* @__PURE__ */ new Date(), o.lastPrinted = /* @__PURE__ */ new Date(), Object.keys(t).sort((r, n) => {
|
|
484
|
+
const l = t[r].sort ?? 0, s = t[n].sort ?? 0;
|
|
485
485
|
return l - s;
|
|
486
486
|
}).forEach((r) => {
|
|
487
|
-
let
|
|
488
|
-
/[\\/:*?\[\]]/g.test(r) && (r = r.replace(/[\\/:*?\[\]]/g, ""), l = !0), r.length > 31 && (r = r.substring(0, 31).trim(), l = !0, console.warn(e("excel.sheetNameTooLong", [
|
|
489
|
-
}),
|
|
487
|
+
let n = r, l = !1;
|
|
488
|
+
/[\\/:*?\[\]]/g.test(r) && (r = r.replace(/[\\/:*?\[\]]/g, ""), l = !0), r.length > 31 && (r = r.substring(0, 31).trim(), l = !0, console.warn(e("excel.sheetNameTooLong", [n, r]))), l && (t[r] = t[n], delete t[n]), o.addWorksheet(r);
|
|
489
|
+
}), o;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function lo(t) {
|
|
492
492
|
if (t < 26)
|
|
493
493
|
return String.fromCharCode(65 + t);
|
|
494
494
|
{
|
|
495
|
-
const e = String.fromCharCode(65 + Math.floor((t - 26) / 26)),
|
|
496
|
-
return e +
|
|
495
|
+
const e = String.fromCharCode(65 + Math.floor((t - 26) / 26)), o = String.fromCharCode(65 + (t - 26) % 26);
|
|
496
|
+
return e + o;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Uo(t) {
|
|
500
500
|
return new Promise((e) => {
|
|
501
501
|
setTimeout(() => {
|
|
502
502
|
e();
|
|
503
503
|
}, t);
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function jo(t) {
|
|
507
507
|
return JSON.parse(JSON.stringify(t));
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
let e = [],
|
|
509
|
+
function Po(t) {
|
|
510
|
+
let e = [], o = {}, a = (r, n) => Object.prototype.hasOwnProperty.call(r, n);
|
|
511
511
|
for (const r of t) {
|
|
512
|
-
|
|
512
|
+
o[r.id] = {
|
|
513
513
|
...r,
|
|
514
514
|
// 判断当前项的子项 如果map有存储就用存储的子项 否则初始化
|
|
515
|
-
children: a(
|
|
515
|
+
children: a(o, r.id) ? o[r.id].children : []
|
|
516
516
|
};
|
|
517
|
-
const
|
|
518
|
-
r.pid == -1 ? e.push(
|
|
517
|
+
const n = o[r.id];
|
|
518
|
+
r.pid == -1 ? e.push(n) : (a(o, r.pid) || (o[r.pid] = {
|
|
519
519
|
children: []
|
|
520
|
-
}),
|
|
520
|
+
}), o[r.pid].children.push(n));
|
|
521
521
|
}
|
|
522
522
|
return e;
|
|
523
523
|
}
|
|
524
524
|
function pt(t, e = " ") {
|
|
525
|
-
return t ? t.split(e).filter((
|
|
525
|
+
return t ? t.split(e).filter((o) => o.trim()) : [];
|
|
526
526
|
}
|
|
527
|
-
class
|
|
528
|
-
constructor(e,
|
|
527
|
+
class tt {
|
|
528
|
+
constructor(e, o = ["label", "value", "labelEn"]) {
|
|
529
529
|
this.list = e.map((a) => ({
|
|
530
530
|
...a,
|
|
531
|
-
label: a[
|
|
532
|
-
labelEn: a[
|
|
533
|
-
value: a[
|
|
534
|
-
})), this.map = new Map(this.list.map((a) => [a[
|
|
531
|
+
label: a[o[0]],
|
|
532
|
+
labelEn: a[o[2]] || a[o[0]] || "",
|
|
533
|
+
value: a[o[1]]
|
|
534
|
+
})), this.map = new Map(this.list.map((a) => [a[o[1]], a]));
|
|
535
535
|
}
|
|
536
536
|
getName(e) {
|
|
537
537
|
if (!this.has(e))
|
|
538
538
|
return "-";
|
|
539
|
-
const
|
|
540
|
-
return (
|
|
539
|
+
const o = Ke().global.locale, { label: a, labelEn: r } = this.map.get(e);
|
|
540
|
+
return (o.value == "zh_cn" ? a : r) || a || "-";
|
|
541
541
|
}
|
|
542
542
|
getTag(e) {
|
|
543
543
|
if (!this.has(e))
|
|
544
544
|
return "info";
|
|
545
|
-
const { tag:
|
|
546
|
-
return
|
|
545
|
+
const { tag: o = "info" } = this.map.get(e);
|
|
546
|
+
return o;
|
|
547
547
|
}
|
|
548
548
|
getItem(e) {
|
|
549
549
|
return this.has(e) ? this.map.get(e) : null;
|
|
@@ -551,59 +551,59 @@ class et {
|
|
|
551
551
|
getColor(e) {
|
|
552
552
|
if (!this.has(e))
|
|
553
553
|
return null;
|
|
554
|
-
const { color:
|
|
555
|
-
return
|
|
554
|
+
const { color: o } = this.map.get(e);
|
|
555
|
+
return o;
|
|
556
556
|
}
|
|
557
557
|
has(e) {
|
|
558
558
|
return this.map.has(e);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ro(t, e = [], o = "i18nName") {
|
|
562
562
|
if (t.length == 0)
|
|
563
|
-
return new
|
|
563
|
+
return new tt([]);
|
|
564
564
|
if (e.length < 2) {
|
|
565
|
-
const r =
|
|
565
|
+
const r = be();
|
|
566
566
|
throw new Error(r("tools.keysLengthError"));
|
|
567
567
|
}
|
|
568
568
|
let a = t.map((r) => {
|
|
569
|
-
let
|
|
570
|
-
return
|
|
571
|
-
s === 0 ?
|
|
572
|
-
}),
|
|
569
|
+
let n = {};
|
|
570
|
+
return o && (n.labelEn = r[o]), e.forEach((l, s) => {
|
|
571
|
+
s === 0 ? n.label = r[l] : s === 1 ? n.value = r[l] : n[l] = r[l];
|
|
572
|
+
}), n;
|
|
573
573
|
});
|
|
574
|
-
return new
|
|
574
|
+
return new tt(a);
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function Bo(t) {
|
|
577
577
|
return t ? t.replace(/<[^>]+>/g, "") : "";
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Yo(t) {
|
|
580
580
|
return t ? (t.includes("\\\\u") && (t = t.replace(/\\/g, "")), t.replace(/\\u[\dA-F]{4}/gi, (e) => String.fromCharCode(parseInt(e.replace(/\\u/g, ""), 16)))) : "";
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
let
|
|
584
|
-
return !(t.size >
|
|
582
|
+
function Ko(t, e = 10) {
|
|
583
|
+
let o = 1048576 * e;
|
|
584
|
+
return !(t.size > o);
|
|
585
585
|
}
|
|
586
|
-
function
|
|
587
|
-
return Array.from(10).fill(0).map((
|
|
586
|
+
function Ho(t) {
|
|
587
|
+
return Array.from(10).fill(0).map((o, a) => t + "_" + a);
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function No(t) {
|
|
590
590
|
let e = {};
|
|
591
|
-
return t.map((
|
|
592
|
-
let { key: r, option:
|
|
593
|
-
|
|
591
|
+
return t.map((o, a) => {
|
|
592
|
+
let { key: r, option: n, type: l } = o, s = lo(a);
|
|
593
|
+
n ? e[r] = `${s}---option` : l === "image" ? e[r] = `${s}---image` : e[r] = s;
|
|
594
594
|
}), e;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return e.split(".").reduce((
|
|
596
|
+
function Wo(t, e) {
|
|
597
|
+
return e.split(".").reduce((o, a) => o && o[a], t);
|
|
598
598
|
}
|
|
599
|
-
const
|
|
600
|
-
const
|
|
599
|
+
const $e = (t, e) => {
|
|
600
|
+
const o = t.__vccOpts || t;
|
|
601
601
|
for (const [a, r] of e)
|
|
602
|
-
|
|
603
|
-
return
|
|
604
|
-
},
|
|
602
|
+
o[a] = r;
|
|
603
|
+
return o;
|
|
604
|
+
}, ao = ["onClick"], ro = {
|
|
605
605
|
__name: "index",
|
|
606
|
-
props: /* @__PURE__ */
|
|
606
|
+
props: /* @__PURE__ */ Qe({
|
|
607
607
|
api: {
|
|
608
608
|
type: Function
|
|
609
609
|
},
|
|
@@ -639,22 +639,22 @@ const _e = (t, e) => {
|
|
|
639
639
|
modelValue: {},
|
|
640
640
|
modelModifiers: {}
|
|
641
641
|
}),
|
|
642
|
-
emits: /* @__PURE__ */
|
|
642
|
+
emits: /* @__PURE__ */ Qe(["success", "change", "changeAll"], ["update:modelValue"]),
|
|
643
643
|
setup(t, { emit: e }) {
|
|
644
|
-
const
|
|
644
|
+
const o = t, a = Lt(), { t: r, locale: n } = me(), l = Tt(t, "modelValue"), s = se(() => a["value-key"] != null), i = R(""), v = se(() => {
|
|
645
645
|
if (a.remote !== void 0)
|
|
646
|
-
return
|
|
647
|
-
const d = pt(i.value), { data: C, labelValue:
|
|
646
|
+
return o.data;
|
|
647
|
+
const d = pt(i.value), { data: C, labelValue: O } = o, A = C || p.value;
|
|
648
648
|
if (d.length == 0)
|
|
649
649
|
return A;
|
|
650
|
-
const { label:
|
|
651
|
-
let y =
|
|
650
|
+
const { label: ne, labelEn: ue } = O;
|
|
651
|
+
let y = n.value == "en_us" ? ue || "i18nName" : ne;
|
|
652
652
|
return d.length == 1 ? A.filter(
|
|
653
653
|
(ie) => ie[y].toLowerCase().includes(d[0].toLowerCase())
|
|
654
654
|
) : A.filter((ie) => {
|
|
655
655
|
let pe = !1;
|
|
656
656
|
return pe = d.some(
|
|
657
|
-
(
|
|
657
|
+
(we) => ie[y].toLowerCase() == we.toLowerCase()
|
|
658
658
|
), pe;
|
|
659
659
|
});
|
|
660
660
|
}), w = se({
|
|
@@ -665,70 +665,70 @@ const _e = (t, e) => {
|
|
|
665
665
|
return d;
|
|
666
666
|
}
|
|
667
667
|
}), b = e, p = R([]), g = async () => {
|
|
668
|
-
const { data: d } = await
|
|
668
|
+
const { data: d } = await o.api();
|
|
669
669
|
p.value = [...d], b("success", p);
|
|
670
670
|
};
|
|
671
|
-
|
|
671
|
+
o.api && g();
|
|
672
672
|
function m(d) {
|
|
673
673
|
b("change", d);
|
|
674
674
|
}
|
|
675
|
-
const u =
|
|
675
|
+
const u = o.labelValue.label.split("-"), h = (d) => {
|
|
676
676
|
if (u.length == 1) {
|
|
677
|
-
if (
|
|
678
|
-
return r(d[
|
|
679
|
-
let C =
|
|
680
|
-
return C = C || d[
|
|
677
|
+
if (o.changeLocal)
|
|
678
|
+
return r(d[o.labelValue.label]);
|
|
679
|
+
let C = n.value == "en_us" ? d[o.labelValue.labelEn || "i18nName"] : d[o.labelValue.label];
|
|
680
|
+
return C = C || d[o.labelValue.label], C;
|
|
681
681
|
} else {
|
|
682
682
|
let C = [];
|
|
683
|
-
return u.forEach((
|
|
684
|
-
C.push(d[
|
|
683
|
+
return u.forEach((O) => {
|
|
684
|
+
C.push(d[O]);
|
|
685
685
|
}), C.join("-");
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
function k(d) {
|
|
689
|
-
let C =
|
|
689
|
+
let C = o.data ? o.data : p.value;
|
|
690
690
|
l.value = d ? C.map(
|
|
691
|
-
(
|
|
692
|
-
) : [],
|
|
691
|
+
(O) => s.value ? O : O[o.labelValue.value]
|
|
692
|
+
) : [], Fe(() => {
|
|
693
693
|
b("change", l.value), b("changeAll", l.value, C);
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
696
|
function _(d) {
|
|
697
|
-
|
|
697
|
+
o.optionClick && o.optionClick(d), b("change", s.value ? d : d[o.labelValue.value]);
|
|
698
698
|
}
|
|
699
699
|
function x(d) {
|
|
700
|
-
return l.value.length >=
|
|
700
|
+
return l.value.length >= o.maxLimit && !l.value.includes(d[o.labelValue.value]);
|
|
701
701
|
}
|
|
702
702
|
function S(d) {
|
|
703
703
|
return d.map((C) => ({
|
|
704
704
|
...C,
|
|
705
705
|
label: h(C),
|
|
706
|
-
value: s.value ? C : C[
|
|
706
|
+
value: s.value ? C : C[o.labelValue.value]
|
|
707
707
|
}));
|
|
708
708
|
}
|
|
709
|
-
const
|
|
710
|
-
|
|
711
|
-
() =>
|
|
709
|
+
const F = R([]), B = o.data ? o.data : p.value;
|
|
710
|
+
F.value = S(B), Re(
|
|
711
|
+
() => o.data ? o.data : p.value,
|
|
712
712
|
(d) => {
|
|
713
|
-
var
|
|
713
|
+
var O;
|
|
714
714
|
const C = S(d);
|
|
715
|
-
if (C.length !==
|
|
716
|
-
|
|
715
|
+
if (C.length !== F.value.length)
|
|
716
|
+
F.value = C;
|
|
717
717
|
else {
|
|
718
718
|
let A = !1;
|
|
719
|
-
for (let
|
|
720
|
-
if (C[
|
|
719
|
+
for (let ne = 0; ne < C.length; ne++)
|
|
720
|
+
if (C[ne].value !== ((O = F.value[ne]) == null ? void 0 : O.value)) {
|
|
721
721
|
A = !0;
|
|
722
722
|
break;
|
|
723
723
|
}
|
|
724
|
-
A && (
|
|
724
|
+
A && (F.value = C);
|
|
725
725
|
}
|
|
726
726
|
},
|
|
727
727
|
{ deep: !0 }
|
|
728
728
|
);
|
|
729
|
-
const L = se(() =>
|
|
729
|
+
const L = se(() => F.value);
|
|
730
730
|
return (d, C) => {
|
|
731
|
-
const
|
|
731
|
+
const O = M("el-checkbox"), A = M("el-select-v2"), ne = M("el-option"), ue = M("el-select");
|
|
732
732
|
return K(a).v2 != null ? (I(), H(A, he({
|
|
733
733
|
key: 0,
|
|
734
734
|
options: L.value,
|
|
@@ -741,11 +741,11 @@ const _e = (t, e) => {
|
|
|
741
741
|
clearable: "",
|
|
742
742
|
onChange: m,
|
|
743
743
|
onClear: m
|
|
744
|
-
}),
|
|
744
|
+
}), rt({
|
|
745
745
|
default: D(({ item: y }) => [
|
|
746
746
|
ae("div", {
|
|
747
747
|
onClick: (ge) => _(y)
|
|
748
|
-
}, J(y.label), 9,
|
|
748
|
+
}, J(y.label), 9, ao)
|
|
749
749
|
]),
|
|
750
750
|
_: 2
|
|
751
751
|
}, [
|
|
@@ -753,7 +753,7 @@ const _e = (t, e) => {
|
|
|
753
753
|
name: "header",
|
|
754
754
|
fn: D(() => [
|
|
755
755
|
X(d.$slots, "header", {}, () => [
|
|
756
|
-
z(
|
|
756
|
+
z(O, {
|
|
757
757
|
class: "mgl20",
|
|
758
758
|
modelValue: w.value,
|
|
759
759
|
"onUpdate:modelValue": C[0] || (C[0] = (y) => w.value = y),
|
|
@@ -780,7 +780,7 @@ const _e = (t, e) => {
|
|
|
780
780
|
}, K(a), { onClear: t.optionClick }), {
|
|
781
781
|
default: D(() => [
|
|
782
782
|
K(a).multiple != null && t.showCheckAll && t.maxLimit == null ? X(d.$slots, "header", { key: 0 }, () => [
|
|
783
|
-
z(
|
|
783
|
+
z(O, {
|
|
784
784
|
class: "mgl20",
|
|
785
785
|
modelValue: w.value,
|
|
786
786
|
"onUpdate:modelValue": C[2] || (C[2] = (y) => w.value = y),
|
|
@@ -792,11 +792,11 @@ const _e = (t, e) => {
|
|
|
792
792
|
_: 1
|
|
793
793
|
}, 8, ["modelValue"])
|
|
794
794
|
], !0) : ce("", !0),
|
|
795
|
-
(I(!0), re(Oe, null,
|
|
795
|
+
(I(!0), re(Oe, null, st(v.value, (y, ge) => (I(), H(ne, {
|
|
796
796
|
key: ge,
|
|
797
797
|
label: h(y),
|
|
798
798
|
disabled: K(a).multiple != null && t.maxLimit > 0 ? x(y) : !1,
|
|
799
|
-
onClick:
|
|
799
|
+
onClick: Ve((ie) => _(y), ["stop"]),
|
|
800
800
|
value: s.value ? y : y[t.labelValue.value]
|
|
801
801
|
}, null, 8, ["label", "disabled", "onClick", "value"]))), 128))
|
|
802
802
|
]),
|
|
@@ -804,8 +804,8 @@ const _e = (t, e) => {
|
|
|
804
804
|
}, 16, ["modelValue", "filter-method", "onClear"]));
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
|
-
},
|
|
808
|
-
const
|
|
807
|
+
}, so = /* @__PURE__ */ $e(ro, [["__scopeId", "data-v-d12f3c20"]]);
|
|
808
|
+
const io = lt({
|
|
809
809
|
props: {
|
|
810
810
|
name: {
|
|
811
811
|
tyepe: String,
|
|
@@ -813,34 +813,34 @@ const cn = ot({
|
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
});
|
|
816
|
-
function
|
|
817
|
-
const l =
|
|
816
|
+
function co(t, e, o, a, r, n) {
|
|
817
|
+
const l = M("el-icon");
|
|
818
818
|
return I(), H(l, { class: "cmp-icon" }, {
|
|
819
819
|
default: D(() => [
|
|
820
|
-
(I(), H(
|
|
820
|
+
(I(), H(it(t.name)))
|
|
821
821
|
]),
|
|
822
822
|
_: 1
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
const yt = /* @__PURE__ */
|
|
825
|
+
const yt = /* @__PURE__ */ $e(io, [["render", co], ["__scopeId", "data-v-733f9daa"]]), Zo = {
|
|
826
826
|
__name: "index",
|
|
827
827
|
emits: ["ok", "no"],
|
|
828
828
|
setup(t, { emit: e }) {
|
|
829
|
-
const
|
|
830
|
-
|
|
829
|
+
const o = e, a = Be(() => {
|
|
830
|
+
o("ok");
|
|
831
831
|
}, 500);
|
|
832
832
|
function r() {
|
|
833
|
-
|
|
833
|
+
o("no");
|
|
834
834
|
}
|
|
835
|
-
return (
|
|
836
|
-
const s =
|
|
835
|
+
return (n, l) => {
|
|
836
|
+
const s = M("el-popconfirm");
|
|
837
837
|
return I(), re("span", null, [
|
|
838
|
-
z(s, he(
|
|
838
|
+
z(s, he(n.$attrs, {
|
|
839
839
|
onConfirm: K(a),
|
|
840
840
|
onCancel: r
|
|
841
841
|
}), {
|
|
842
842
|
reference: D(() => [
|
|
843
|
-
X(
|
|
843
|
+
X(n.$slots, "default")
|
|
844
844
|
]),
|
|
845
845
|
_: 3
|
|
846
846
|
}, 16, ["onConfirm"])
|
|
@@ -848,7 +848,7 @@ const yt = /* @__PURE__ */ _e(cn, [["render", un], ["__scopeId", "data-v-733f9da
|
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
const
|
|
851
|
+
const uo = ["accept"], fo = {
|
|
852
852
|
__name: "index",
|
|
853
853
|
props: {
|
|
854
854
|
accept: {
|
|
@@ -866,21 +866,21 @@ const dn = ["accept"], fn = {
|
|
|
866
866
|
},
|
|
867
867
|
emits: ["fileChange"],
|
|
868
868
|
setup(t, { emit: e }) {
|
|
869
|
-
const
|
|
870
|
-
async function
|
|
869
|
+
const o = t, a = R(null), r = R(!1);
|
|
870
|
+
async function n(l) {
|
|
871
871
|
r.value = !0;
|
|
872
872
|
let s = l.target.files[0];
|
|
873
|
-
const i = await
|
|
873
|
+
const i = await to(s, o.fields).catch(() => {
|
|
874
874
|
r.value = !1;
|
|
875
875
|
}).finally(() => {
|
|
876
876
|
a.value.value = null;
|
|
877
877
|
});
|
|
878
|
-
await
|
|
878
|
+
await o.fileChange(i).finally(() => {
|
|
879
879
|
r.value = !1;
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
882
|
return (l, s) => {
|
|
883
|
-
const i =
|
|
883
|
+
const i = M("el-button");
|
|
884
884
|
return I(), re("span", null, [
|
|
885
885
|
z(i, {
|
|
886
886
|
loading: r.value,
|
|
@@ -893,36 +893,36 @@ const dn = ["accept"], fn = {
|
|
|
893
893
|
_: 1
|
|
894
894
|
}, 8, ["loading"]),
|
|
895
895
|
ae("input", {
|
|
896
|
-
onChange:
|
|
896
|
+
onChange: n,
|
|
897
897
|
ref_key: "input",
|
|
898
898
|
ref: a,
|
|
899
899
|
accept: t.accept,
|
|
900
900
|
style: { position: "absolute", width: "0px", height: "0px", opacity: "0" },
|
|
901
901
|
type: "file"
|
|
902
|
-
}, null, 40,
|
|
902
|
+
}, null, 40, uo)
|
|
903
903
|
]);
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
|
-
},
|
|
907
|
-
function
|
|
906
|
+
}, Go = /* @__PURE__ */ $e(fo, [["__scopeId", "data-v-6f9ede29"]]);
|
|
907
|
+
function Pe(t) {
|
|
908
908
|
let e = {};
|
|
909
|
-
return t.forEach((
|
|
910
|
-
const { key: a, type: r, option:
|
|
909
|
+
return t.forEach((o) => {
|
|
910
|
+
const { key: a, type: r, option: n = {}, value: l, dateType: s = "date" } = o;
|
|
911
911
|
if (a)
|
|
912
|
-
if (r == "input" && (
|
|
912
|
+
if (r == "input" && (n != null && n.multiple))
|
|
913
913
|
e[a] = pt(l);
|
|
914
914
|
else if (r == "date")
|
|
915
915
|
if (s.includes("range")) {
|
|
916
916
|
const [i, v] = a;
|
|
917
917
|
let [w, b] = l || [];
|
|
918
|
-
w && s == "daterange" && (w =
|
|
918
|
+
w && s == "daterange" && (w = _e(w).format("YYYY-MM-DD 00:00:00"), b = _e(b).format("YYYY-MM-DD 23:59:59")), e[i] = w, e[v] = b;
|
|
919
919
|
} else
|
|
920
920
|
e[a] = l;
|
|
921
921
|
else
|
|
922
922
|
e[a] = l;
|
|
923
923
|
}), e;
|
|
924
924
|
}
|
|
925
|
-
const
|
|
925
|
+
const ho = { key: 0 }, mo = { class: "btns" }, go = { class: "left" }, po = { class: "right" }, yo = {
|
|
926
926
|
__name: "index",
|
|
927
927
|
props: {
|
|
928
928
|
form: {
|
|
@@ -931,8 +931,8 @@ const hn = { key: 0 }, mn = { class: "btns" }, gn = { class: "left" }, pn = { cl
|
|
|
931
931
|
}
|
|
932
932
|
},
|
|
933
933
|
emits: ["confirm", "reset", "visibleChange"],
|
|
934
|
-
setup(t, { expose: e, emit:
|
|
935
|
-
const a = t, r =
|
|
934
|
+
setup(t, { expose: e, emit: o }) {
|
|
935
|
+
const a = t, r = o, n = R(!0), l = R(null), { t: s } = me(), i = se(() => n.value ? s("guan-bi") : s("zhan-kai"));
|
|
936
936
|
function v() {
|
|
937
937
|
r("confirm");
|
|
938
938
|
}
|
|
@@ -946,9 +946,9 @@ const hn = { key: 0 }, mn = { class: "btns" }, gn = { class: "left" }, pn = { cl
|
|
|
946
946
|
r("confirm");
|
|
947
947
|
}
|
|
948
948
|
function g() {
|
|
949
|
-
return
|
|
949
|
+
return Pe(a.form.items);
|
|
950
950
|
}
|
|
951
|
-
const m =
|
|
951
|
+
const m = ye(a.form.items);
|
|
952
952
|
function u() {
|
|
953
953
|
a.form.items.forEach((h) => {
|
|
954
954
|
const k = m.find((_) => _.key == h.key);
|
|
@@ -956,41 +956,41 @@ const hn = { key: 0 }, mn = { class: "btns" }, gn = { class: "left" }, pn = { cl
|
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
958
|
return e({ getPrm: g, reset: u }), (h, k) => {
|
|
959
|
-
const _ =
|
|
959
|
+
const _ = M("el-input"), x = M("el-date-picker"), S = M("el-form-item"), F = M("el-form"), B = M("el-link"), L = M("el-button");
|
|
960
960
|
return I(), re("div", {
|
|
961
961
|
class: "searchBar-container mgt10 mgb10",
|
|
962
962
|
onKeydown: Dt(v, ["enter"])
|
|
963
963
|
}, [
|
|
964
964
|
ae("div", {
|
|
965
965
|
class: "searchBar",
|
|
966
|
-
style: zt({ height:
|
|
966
|
+
style: zt({ height: n.value ? "auto" : "42px" })
|
|
967
967
|
}, [
|
|
968
|
-
z(
|
|
968
|
+
z(F, {
|
|
969
969
|
inline: "",
|
|
970
970
|
model: t.form.data
|
|
971
971
|
}, {
|
|
972
972
|
default: D(() => [
|
|
973
|
-
(I(!0), re(Oe, null,
|
|
973
|
+
(I(!0), re(Oe, null, st(t.form.items.filter((d) => !d.hidden), (d) => (I(), re(Oe, {
|
|
974
974
|
key: d.key
|
|
975
975
|
}, [
|
|
976
|
-
d.type == "br" ? (I(), re("br",
|
|
976
|
+
d.type == "br" ? (I(), re("br", ho)) : (I(), H(S, {
|
|
977
977
|
key: 1,
|
|
978
978
|
label: d.name
|
|
979
979
|
}, {
|
|
980
980
|
default: D(() => {
|
|
981
|
-
var C,
|
|
981
|
+
var C, O;
|
|
982
982
|
return [
|
|
983
983
|
d.type === "input" ? (I(), H(_, {
|
|
984
984
|
key: 0,
|
|
985
985
|
modelValue: d.value,
|
|
986
986
|
"onUpdate:modelValue": (A) => d.value = A,
|
|
987
|
-
class:
|
|
987
|
+
class: qe(((C = d.option) == null ? void 0 : C.class) || "w150"),
|
|
988
988
|
placeholder: h.$t("qing-shu-ru"),
|
|
989
989
|
clearable: ""
|
|
990
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "class", "placeholder"])) : d.type === "custom" ? (I(), H(
|
|
991
|
-
d.type === "select" ? (I(), H(
|
|
990
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "class", "placeholder"])) : d.type === "custom" ? (I(), H(it(d.render), { key: 1 })) : ce("", !0),
|
|
991
|
+
d.type === "select" ? (I(), H(so, he({
|
|
992
992
|
key: 2,
|
|
993
|
-
class: ((
|
|
993
|
+
class: ((O = d.option) == null ? void 0 : O.class) || "w150",
|
|
994
994
|
modelValue: d.value,
|
|
995
995
|
"onUpdate:modelValue": (A) => d.value = A
|
|
996
996
|
}, { ref_for: !0 }, d.option, {
|
|
@@ -999,7 +999,7 @@ const hn = { key: 0 }, mn = { class: "btns" }, gn = { class: "left" }, pn = { cl
|
|
|
999
999
|
}), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onClear"])) : ce("", !0),
|
|
1000
1000
|
d.type === "date" ? (I(), H(x, {
|
|
1001
1001
|
key: 3,
|
|
1002
|
-
class:
|
|
1002
|
+
class: qe({ datetimerange: "w300", daterange: "w200" }[d.dateType] || "w100"),
|
|
1003
1003
|
modelValue: d.value,
|
|
1004
1004
|
"onUpdate:modelValue": (A) => d.value = A,
|
|
1005
1005
|
"value-format": { datetimerange: "YYYY-MM-DD HH:mm:ss", daterange: "YYYY-MM-DD" }[d.dateType] || "YYYY-MM-DD",
|
|
@@ -1019,21 +1019,21 @@ const hn = { key: 0 }, mn = { class: "btns" }, gn = { class: "left" }, pn = { cl
|
|
|
1019
1019
|
_: 1
|
|
1020
1020
|
}, 8, ["model"])
|
|
1021
1021
|
], 4),
|
|
1022
|
-
ae("div",
|
|
1023
|
-
ae("div",
|
|
1022
|
+
ae("div", mo, [
|
|
1023
|
+
ae("div", go, [
|
|
1024
1024
|
X(h.$slots, "table-header-left", {}, void 0, !0)
|
|
1025
1025
|
]),
|
|
1026
|
-
ae("div",
|
|
1026
|
+
ae("div", po, [
|
|
1027
1027
|
z(B, {
|
|
1028
1028
|
underline: "never",
|
|
1029
1029
|
class: "mgr10",
|
|
1030
1030
|
onClick: k[0] || (k[0] = () => {
|
|
1031
|
-
r("visibleChange", !
|
|
1031
|
+
r("visibleChange", !n.value), n.value = !n.value;
|
|
1032
1032
|
})
|
|
1033
1033
|
}, {
|
|
1034
1034
|
default: D(() => [
|
|
1035
1035
|
z(yt, {
|
|
1036
|
-
name:
|
|
1036
|
+
name: n.value ? "ArrowUp" : "ArrowDown"
|
|
1037
1037
|
}, null, 8, ["name"]),
|
|
1038
1038
|
Q(" " + J(i.value), 1)
|
|
1039
1039
|
]),
|
|
@@ -1063,7 +1063,7 @@ const hn = { key: 0 }, mn = { class: "btns" }, gn = { class: "left" }, pn = { cl
|
|
|
1063
1063
|
], 32);
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
|
-
},
|
|
1066
|
+
}, vo = /* @__PURE__ */ $e(yo, [["__scopeId", "data-v-3c0a6716"]]), vt = {
|
|
1067
1067
|
// 分页参数名
|
|
1068
1068
|
pageNoKey: "pageNo",
|
|
1069
1069
|
// 页码参数名
|
|
@@ -1093,24 +1093,24 @@ const hn = { key: 0 }, mn = { class: "btns" }, gn = { class: "left" }, pn = { cl
|
|
|
1093
1093
|
enableCellCopy: !0
|
|
1094
1094
|
// 是否启用单元格选区复制功能
|
|
1095
1095
|
};
|
|
1096
|
-
let
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1099
|
-
...
|
|
1096
|
+
let ke = { ...vt };
|
|
1097
|
+
function Jo(t) {
|
|
1098
|
+
ke = {
|
|
1099
|
+
...ke,
|
|
1100
1100
|
...t,
|
|
1101
1101
|
responseDataKeys: {
|
|
1102
|
-
...
|
|
1102
|
+
...ke.responseDataKeys,
|
|
1103
1103
|
...t.responseDataKeys || {}
|
|
1104
1104
|
}
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return
|
|
1107
|
+
function bo() {
|
|
1108
|
+
return ke;
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
|
|
1110
|
+
function Xo() {
|
|
1111
|
+
ke = { ...vt };
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1113
|
+
const wo = { class: "center" }, Co = {
|
|
1114
1114
|
__name: "index",
|
|
1115
1115
|
props: {
|
|
1116
1116
|
// 表格id 本地存储列设置时使用,不传则使用路由路径自动生成
|
|
@@ -1147,20 +1147,20 @@ const wn = { class: "center" }, Cn = {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
},
|
|
1149
1149
|
setup(t, { expose: e }) {
|
|
1150
|
-
const { t:
|
|
1151
|
-
console.log("globalConfig",
|
|
1150
|
+
const { t: o, locale: a } = me(), r = Ut(), n = bo(), l = t, s = R(!1), i = R([]);
|
|
1151
|
+
console.log("globalConfig", n), console.log("props.searchForm", ye(l.searchForm)), l.searchForm.showSearch === void 0 && (l.searchForm.showSearch = n.showSearch), l.searchForm.showPage === void 0 && (l.searchForm.showPage = n.showPage), l.searchForm.showShadow === void 0 && (l.searchForm.showShadow = n.showShadow), l.searchForm.showCheckBox === void 0 && (l.searchForm.showCheckBox = n.showCheckBox), l.searchForm.enableCellCopy === void 0 && (l.searchForm.enableCellCopy = n.enableCellCopy), l.searchForm.selections || (l.searchForm.selections = []), console.log("props.searchForm-2", ye(l.searchForm));
|
|
1152
1152
|
const v = se(() => {
|
|
1153
1153
|
const f = r.path.replace(/\//g, "-").replace(/^-/, "") || "default-table";
|
|
1154
1154
|
return l.id ? `listPageId-${f}-${l.id}` : `listPageId-${f}`;
|
|
1155
|
-
}), w =
|
|
1155
|
+
}), w = ye(l.searchForm.items), b = l.searchForm.pageNoKey || n.pageNoKey, p = l.searchForm.pageSizeKey || n.pageSizeKey, g = Se({
|
|
1156
1156
|
[b]: 1,
|
|
1157
|
-
[p]: l.searchForm.defaultPageSize ||
|
|
1157
|
+
[p]: l.searchForm.defaultPageSize || n.defaultPageSize,
|
|
1158
1158
|
total: 0
|
|
1159
|
-
}), m = R(null), u = R(null), h = R(450), k =
|
|
1160
|
-
|
|
1159
|
+
}), m = R(null), u = R(null), h = R(450), k = Be(() => {
|
|
1160
|
+
Fe(() => {
|
|
1161
1161
|
if (!u.value)
|
|
1162
1162
|
return;
|
|
1163
|
-
const c = u.value.getBoundingClientRect(), $ = window.innerHeight, T = c.top,
|
|
1163
|
+
const c = u.value.getBoundingClientRect(), $ = window.innerHeight, T = c.top, j = 100, W = $ - T - j, V = 200;
|
|
1164
1164
|
h.value = Math.max(W, V);
|
|
1165
1165
|
});
|
|
1166
1166
|
}, 100), _ = () => {
|
|
@@ -1172,48 +1172,48 @@ const wn = { class: "center" }, Cn = {
|
|
|
1172
1172
|
if (!f || !f.$el)
|
|
1173
1173
|
return !1;
|
|
1174
1174
|
const c = f.$el;
|
|
1175
|
-
return c.classList.add("cell-copy-enabled"), c.setAttribute("tabindex", "-1"), c.removeEventListener("mousedown", ie), c.removeEventListener("mousemove", pe), c.removeEventListener("mouseup",
|
|
1175
|
+
return c.classList.add("cell-copy-enabled"), c.setAttribute("tabindex", "-1"), c.removeEventListener("mousedown", ie), c.removeEventListener("mousemove", pe), c.removeEventListener("mouseup", we), c.removeEventListener("keydown", Le), c.addEventListener("mousedown", ie), c.addEventListener("mousemove", pe), c.addEventListener("mouseup", we), c.addEventListener("keydown", Le), !0;
|
|
1176
1176
|
};
|
|
1177
|
-
|
|
1178
|
-
k(), window.addEventListener("resize", _), l.searchForm.enableCellCopy && (document.addEventListener("mouseup",
|
|
1177
|
+
at(() => {
|
|
1178
|
+
k(), window.addEventListener("resize", _), console.log("onMounted-searchForm", ye(l.searchForm)), l.searchForm.enableCellCopy && (document.addEventListener("mouseup", We), document.addEventListener("mousedown", Ze), setTimeout(() => {
|
|
1179
1179
|
x();
|
|
1180
1180
|
}, 500));
|
|
1181
|
-
}),
|
|
1182
|
-
l.searchForm.enableCellCopy && setTimeout(() => {
|
|
1181
|
+
}), Mt(() => {
|
|
1182
|
+
console.log("onUpdated-searchForm", ye(l.searchForm)), l.searchForm.enableCellCopy && setTimeout(() => {
|
|
1183
1183
|
x();
|
|
1184
1184
|
}, 500);
|
|
1185
|
-
}),
|
|
1185
|
+
}), Ot(() => {
|
|
1186
1186
|
if (window.removeEventListener("resize", _), l.searchForm.enableCellCopy) {
|
|
1187
|
-
document.removeEventListener("mouseup",
|
|
1187
|
+
document.removeEventListener("mouseup", We), document.removeEventListener("mousedown", Ze);
|
|
1188
1188
|
const f = m.value;
|
|
1189
1189
|
if (f && f.$el) {
|
|
1190
1190
|
const c = f.$el;
|
|
1191
|
-
c.removeEventListener("mousedown", ie), c.removeEventListener("mousemove", pe), c.removeEventListener("mouseup",
|
|
1191
|
+
c.removeEventListener("mousedown", ie), c.removeEventListener("mousemove", pe), c.removeEventListener("mouseup", we), c.removeEventListener("keydown", Le);
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
});
|
|
1195
1195
|
const S = se(() => ue.value.height || h.value);
|
|
1196
|
-
let
|
|
1196
|
+
let F;
|
|
1197
1197
|
async function B(f) {
|
|
1198
1198
|
const { dataFormat: c } = l.tableConfig;
|
|
1199
|
-
f[b] != 1 && (f.nextSearchAfter =
|
|
1199
|
+
f[b] != 1 && (f.nextSearchAfter = F), s.value = !0;
|
|
1200
1200
|
const { code: $, data: T = {} } = await l.api(f).finally(() => {
|
|
1201
1201
|
s.value = !1, l.searchForm.selections = [];
|
|
1202
1202
|
});
|
|
1203
1203
|
if ($ == 200) {
|
|
1204
|
-
let
|
|
1205
|
-
for (const V of
|
|
1204
|
+
let j = [];
|
|
1205
|
+
for (const V of n.responseDataKeys.rows)
|
|
1206
1206
|
if (T[V]) {
|
|
1207
|
-
|
|
1207
|
+
j = T[V];
|
|
1208
1208
|
break;
|
|
1209
1209
|
}
|
|
1210
1210
|
let W = 0;
|
|
1211
|
-
for (const V of
|
|
1211
|
+
for (const V of n.responseDataKeys.total)
|
|
1212
1212
|
if (T[V] !== void 0) {
|
|
1213
1213
|
W = T[V];
|
|
1214
1214
|
break;
|
|
1215
1215
|
}
|
|
1216
|
-
i.value = c ? c(
|
|
1216
|
+
i.value = c ? c(j) : j, g.total = W, F = T.nextSearchAfter, l.searchForm.enableCellCopy && Fe(() => {
|
|
1217
1217
|
setTimeout(() => {
|
|
1218
1218
|
x();
|
|
1219
1219
|
}, 100);
|
|
@@ -1224,7 +1224,7 @@ const wn = { class: "center" }, Cn = {
|
|
|
1224
1224
|
const { searchData: c = () => ({}) } = l.tableConfig, $ = c();
|
|
1225
1225
|
B({
|
|
1226
1226
|
...g,
|
|
1227
|
-
...
|
|
1227
|
+
...Pe(l.searchForm.items),
|
|
1228
1228
|
...f,
|
|
1229
1229
|
...$
|
|
1230
1230
|
});
|
|
@@ -1232,20 +1232,20 @@ const wn = { class: "center" }, Cn = {
|
|
|
1232
1232
|
function d() {
|
|
1233
1233
|
const { reset: f } = l.tableConfig;
|
|
1234
1234
|
f && f(), l.searchForm.items.forEach((c) => {
|
|
1235
|
-
const $ = w.find((T) =>
|
|
1235
|
+
const $ = w.find((T) => et(c.key) && et(T.key) ? c.key.join(",") == T.key.join(",") : T.key == c.key);
|
|
1236
1236
|
$ && (c.value = $.value);
|
|
1237
1237
|
}), L();
|
|
1238
1238
|
}
|
|
1239
1239
|
l.api && l.immediate && L();
|
|
1240
1240
|
function C() {
|
|
1241
|
-
return { ...g, ...
|
|
1241
|
+
return { ...g, ...Pe(l.searchForm.items) };
|
|
1242
1242
|
}
|
|
1243
|
-
const
|
|
1243
|
+
const O = () => {
|
|
1244
1244
|
const f = m.value;
|
|
1245
1245
|
f && f.clearSort();
|
|
1246
|
-
}, A =
|
|
1246
|
+
}, A = Se({
|
|
1247
1247
|
storage: !0
|
|
1248
|
-
}),
|
|
1248
|
+
}), ne = Se({
|
|
1249
1249
|
drag: !0,
|
|
1250
1250
|
resizable: !0,
|
|
1251
1251
|
maxFixedSize: 0
|
|
@@ -1255,7 +1255,7 @@ const wn = { class: "center" }, Cn = {
|
|
|
1255
1255
|
headerAlign: "left",
|
|
1256
1256
|
align: "center",
|
|
1257
1257
|
customConfig: { ...A, ...f },
|
|
1258
|
-
columnConfig: { ...
|
|
1258
|
+
columnConfig: { ...ne, ...c },
|
|
1259
1259
|
// 列过多时 自动宽度 虚拟滚动会闪屏 关闭虚拟滚动
|
|
1260
1260
|
"virtual-x-config": {
|
|
1261
1261
|
enabled: !1,
|
|
@@ -1265,7 +1265,7 @@ const wn = { class: "center" }, Cn = {
|
|
|
1265
1265
|
"virtual-y-config": { enabled: !0, gt: 100 },
|
|
1266
1266
|
...$
|
|
1267
1267
|
};
|
|
1268
|
-
}), y =
|
|
1268
|
+
}), y = Se({
|
|
1269
1269
|
isSelecting: !1,
|
|
1270
1270
|
// 是否正在选择
|
|
1271
1271
|
startCell: null,
|
|
@@ -1284,42 +1284,42 @@ const wn = { class: "center" }, Cn = {
|
|
|
1284
1284
|
const T = m.value;
|
|
1285
1285
|
if (!T)
|
|
1286
1286
|
return null;
|
|
1287
|
-
let
|
|
1287
|
+
let j = -1;
|
|
1288
1288
|
const W = $.getAttribute("data-rowid");
|
|
1289
1289
|
if (W != null)
|
|
1290
|
-
|
|
1290
|
+
j = parseInt(W, 10);
|
|
1291
1291
|
else {
|
|
1292
1292
|
const q = $.parentElement;
|
|
1293
|
-
|
|
1293
|
+
j = Array.from(q.querySelectorAll(".vxe-body--row")).indexOf($);
|
|
1294
1294
|
}
|
|
1295
|
-
if (
|
|
1295
|
+
if (j < 0)
|
|
1296
1296
|
return null;
|
|
1297
1297
|
let V = -1;
|
|
1298
1298
|
const le = c.getAttribute("data-colid");
|
|
1299
|
-
if (le && (V = T.getColumns().findIndex((
|
|
1300
|
-
const
|
|
1299
|
+
if (le && (V = T.getColumns().findIndex((E) => E.id === le)), V < 0) {
|
|
1300
|
+
const E = Array.from($.querySelectorAll(".vxe-body--column")).indexOf(c), Y = !!c.closest(".vxe-table--fixed-left-wrapper"), Z = !!c.closest(".vxe-table--fixed-right-wrapper"), P = T.getColumns();
|
|
1301
1301
|
if (Y) {
|
|
1302
1302
|
const G = P.filter((N) => N.fixed === "left");
|
|
1303
|
-
|
|
1303
|
+
E < G.length && (V = P.indexOf(G[E]));
|
|
1304
1304
|
} else if (Z) {
|
|
1305
1305
|
const G = P.filter((N) => N.fixed === "right");
|
|
1306
|
-
|
|
1306
|
+
E < G.length && (V = P.indexOf(G[E]));
|
|
1307
1307
|
} else {
|
|
1308
1308
|
const G = l.searchForm.showCheckBox ? 1 : 0;
|
|
1309
|
-
V = P.filter((ee) => ee.fixed === "left").length +
|
|
1309
|
+
V = P.filter((ee) => ee.fixed === "left").length + E - G;
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
return V < 0 ? null : { rowIndex:
|
|
1312
|
+
return V < 0 ? null : { rowIndex: j, colIndex: V, cell: c };
|
|
1313
1313
|
}, ie = (f) => {
|
|
1314
1314
|
const c = ge(f.target);
|
|
1315
1315
|
if (!c) {
|
|
1316
|
-
|
|
1316
|
+
Ie();
|
|
1317
1317
|
return;
|
|
1318
1318
|
}
|
|
1319
1319
|
y.isSelecting = !0, y.startCell = {
|
|
1320
1320
|
rowIndex: c.rowIndex,
|
|
1321
1321
|
colIndex: c.colIndex
|
|
1322
|
-
}, y.endCell = { ...y.startCell },
|
|
1322
|
+
}, y.endCell = { ...y.startCell }, He(), Ne();
|
|
1323
1323
|
}, pe = (f) => {
|
|
1324
1324
|
if (!y.isSelecting)
|
|
1325
1325
|
return;
|
|
@@ -1327,10 +1327,10 @@ const wn = { class: "center" }, Cn = {
|
|
|
1327
1327
|
c && (y.endCell = {
|
|
1328
1328
|
rowIndex: c.rowIndex,
|
|
1329
1329
|
colIndex: c.colIndex
|
|
1330
|
-
},
|
|
1331
|
-
},
|
|
1330
|
+
}, He(), Ne());
|
|
1331
|
+
}, we = () => {
|
|
1332
1332
|
y.isSelecting = !1;
|
|
1333
|
-
},
|
|
1333
|
+
}, Ie = () => {
|
|
1334
1334
|
y.selectedCells = [], y.startCell = null, y.endCell = null;
|
|
1335
1335
|
const f = m.value;
|
|
1336
1336
|
if (!f)
|
|
@@ -1346,21 +1346,21 @@ const wn = { class: "center" }, Cn = {
|
|
|
1346
1346
|
"cell-border-left"
|
|
1347
1347
|
);
|
|
1348
1348
|
});
|
|
1349
|
-
},
|
|
1349
|
+
}, He = () => {
|
|
1350
1350
|
if (!y.startCell || !y.endCell) {
|
|
1351
1351
|
y.selectedCells = [];
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
|
-
const f = y.startCell.rowIndex, c = y.endCell.rowIndex, $ = y.startCell.colIndex, T = y.endCell.colIndex,
|
|
1354
|
+
const f = y.startCell.rowIndex, c = y.endCell.rowIndex, $ = y.startCell.colIndex, T = y.endCell.colIndex, j = Math.min(f, c), W = Math.max(f, c), V = Math.min($, T), le = Math.max($, T);
|
|
1355
1355
|
y.selectedCells = [];
|
|
1356
|
-
for (let q =
|
|
1357
|
-
for (let
|
|
1356
|
+
for (let q = j; q <= W; q++)
|
|
1357
|
+
for (let E = V; E <= le; E++)
|
|
1358
1358
|
y.selectedCells.push({
|
|
1359
1359
|
rowIndex: q,
|
|
1360
|
-
colIndex:
|
|
1360
|
+
colIndex: E
|
|
1361
1361
|
});
|
|
1362
|
-
},
|
|
1363
|
-
|
|
1362
|
+
}, Ne = () => {
|
|
1363
|
+
Fe(() => {
|
|
1364
1364
|
const f = m.value;
|
|
1365
1365
|
if (!f)
|
|
1366
1366
|
return;
|
|
@@ -1377,7 +1377,7 @@ const wn = { class: "center" }, Cn = {
|
|
|
1377
1377
|
);
|
|
1378
1378
|
}), y.selectedCells.length === 0)
|
|
1379
1379
|
return;
|
|
1380
|
-
const $ = f.getColumns(), T = y.selectedCells.map((Y) => Y.rowIndex),
|
|
1380
|
+
const $ = f.getColumns(), T = y.selectedCells.map((Y) => Y.rowIndex), j = y.selectedCells.map((Y) => Y.colIndex), W = Math.min(...T), V = Math.max(...T), le = Math.min(...j), q = Math.max(...j), E = [
|
|
1381
1381
|
c.querySelector(".vxe-table--body-wrapper tbody"),
|
|
1382
1382
|
c.querySelector(".vxe-table--fixed-left-wrapper tbody"),
|
|
1383
1383
|
c.querySelector(".vxe-table--fixed-right-wrapper tbody")
|
|
@@ -1387,24 +1387,24 @@ const wn = { class: "center" }, Cn = {
|
|
|
1387
1387
|
if (!P)
|
|
1388
1388
|
return;
|
|
1389
1389
|
const G = P.fixed === "left", N = P.fixed === "right";
|
|
1390
|
-
for (const ee of
|
|
1391
|
-
const
|
|
1392
|
-
if (!
|
|
1390
|
+
for (const ee of E) {
|
|
1391
|
+
const Ce = ee.querySelectorAll(".vxe-body--row")[Y];
|
|
1392
|
+
if (!Ce)
|
|
1393
1393
|
continue;
|
|
1394
|
-
const de = Array.from(
|
|
1395
|
-
let
|
|
1394
|
+
const de = Array.from(Ce.querySelectorAll(".vxe-body--column"));
|
|
1395
|
+
let U = null;
|
|
1396
1396
|
if (G && ee.closest(".vxe-table--fixed-left-wrapper")) {
|
|
1397
|
-
const te = $.filter((
|
|
1398
|
-
|
|
1397
|
+
const te = $.filter((oe) => oe.fixed === "left").indexOf(P);
|
|
1398
|
+
U = de[te];
|
|
1399
1399
|
} else if (N && ee.closest(".vxe-table--fixed-right-wrapper")) {
|
|
1400
|
-
const te = $.filter((
|
|
1401
|
-
|
|
1400
|
+
const te = $.filter((oe) => oe.fixed === "right").indexOf(P);
|
|
1401
|
+
U = de[te];
|
|
1402
1402
|
} else if (!G && !N && ee.closest(".vxe-table--body-wrapper")) {
|
|
1403
|
-
const fe = l.searchForm.showCheckBox ? 1 : 0, te = $.filter((
|
|
1404
|
-
|
|
1403
|
+
const fe = l.searchForm.showCheckBox ? 1 : 0, te = $.filter((Te) => Te.fixed === "left").length, oe = Z - te;
|
|
1404
|
+
U = de[oe + fe];
|
|
1405
1405
|
}
|
|
1406
|
-
if (
|
|
1407
|
-
|
|
1406
|
+
if (U && !U.classList.contains("col--checkbox") && !U.classList.contains("col--seq")) {
|
|
1407
|
+
U.classList.add("cell-selected"), Y === W && U.classList.add("cell-border-top"), Y === V && U.classList.add("cell-border-bottom"), Z === le && U.classList.add("cell-border-left"), Z === q && U.classList.add("cell-border-right");
|
|
1408
1408
|
break;
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
@@ -1417,47 +1417,47 @@ const wn = { class: "center" }, Cn = {
|
|
|
1417
1417
|
if (!f)
|
|
1418
1418
|
return;
|
|
1419
1419
|
const c = f.$el, $ = f.getColumns(), T = [...new Set(y.selectedCells.map((q) => q.rowIndex))].sort(
|
|
1420
|
-
(q,
|
|
1421
|
-
),
|
|
1422
|
-
(q,
|
|
1420
|
+
(q, E) => q - E
|
|
1421
|
+
), j = [...new Set(y.selectedCells.map((q) => q.colIndex))].sort(
|
|
1422
|
+
(q, E) => q - E
|
|
1423
1423
|
), W = [
|
|
1424
1424
|
c.querySelector(".vxe-table--body-wrapper tbody"),
|
|
1425
1425
|
c.querySelector(".vxe-table--fixed-left-wrapper tbody"),
|
|
1426
1426
|
c.querySelector(".vxe-table--fixed-right-wrapper tbody")
|
|
1427
1427
|
].filter(Boolean), V = [];
|
|
1428
1428
|
T.forEach((q) => {
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1429
|
+
const E = [];
|
|
1430
|
+
j.forEach((Y) => {
|
|
1431
1431
|
const Z = $[Y];
|
|
1432
1432
|
if (!Z) {
|
|
1433
|
-
|
|
1433
|
+
E.push("");
|
|
1434
1434
|
return;
|
|
1435
1435
|
}
|
|
1436
1436
|
const P = Z.fixed === "left", G = Z.fixed === "right";
|
|
1437
1437
|
let N = "";
|
|
1438
1438
|
for (const ee of W) {
|
|
1439
|
-
const
|
|
1440
|
-
if (!
|
|
1439
|
+
const Ce = ee.querySelectorAll(".vxe-body--row")[q];
|
|
1440
|
+
if (!Ce)
|
|
1441
1441
|
continue;
|
|
1442
|
-
const de = Array.from(
|
|
1443
|
-
let
|
|
1442
|
+
const de = Array.from(Ce.querySelectorAll(".vxe-body--column"));
|
|
1443
|
+
let U = null;
|
|
1444
1444
|
if (P && ee.closest(".vxe-table--fixed-left-wrapper")) {
|
|
1445
|
-
const te = $.filter((
|
|
1446
|
-
|
|
1445
|
+
const te = $.filter((oe) => oe.fixed === "left").indexOf(Z);
|
|
1446
|
+
U = de[te];
|
|
1447
1447
|
} else if (G && ee.closest(".vxe-table--fixed-right-wrapper")) {
|
|
1448
|
-
const te = $.filter((
|
|
1449
|
-
|
|
1448
|
+
const te = $.filter((oe) => oe.fixed === "right").indexOf(Z);
|
|
1449
|
+
U = de[te];
|
|
1450
1450
|
} else if (!P && !G && ee.closest(".vxe-table--body-wrapper")) {
|
|
1451
|
-
const fe = l.searchForm.showCheckBox ? 1 : 0, te = $.filter((
|
|
1452
|
-
|
|
1451
|
+
const fe = l.searchForm.showCheckBox ? 1 : 0, te = $.filter((Te) => Te.fixed === "left").length, oe = Y - te;
|
|
1452
|
+
U = de[oe + fe];
|
|
1453
1453
|
}
|
|
1454
|
-
if (
|
|
1455
|
-
N =
|
|
1454
|
+
if (U && !U.classList.contains("col--checkbox") && !U.classList.contains("col--seq")) {
|
|
1455
|
+
N = U.innerText || U.textContent || "", N = N.trim(), N = N.replace(/\n/g, " ").replace(/\s+/g, " ");
|
|
1456
1456
|
break;
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
|
|
1460
|
-
}), V.push(
|
|
1459
|
+
E.push(N);
|
|
1460
|
+
}), V.push(E.join(" "));
|
|
1461
1461
|
});
|
|
1462
1462
|
const le = V.join(`
|
|
1463
1463
|
`);
|
|
@@ -1466,25 +1466,25 @@ const wn = { class: "center" }, Cn = {
|
|
|
1466
1466
|
} catch (q) {
|
|
1467
1467
|
console.error("复制失败:", q);
|
|
1468
1468
|
}
|
|
1469
|
-
},
|
|
1470
|
-
l.searchForm.enableCellCopy && ((f.ctrlKey || f.metaKey) && f.key === "c" ? y.selectedCells.length > 0 && (f.preventDefault(), f.stopPropagation(), wt()) : f.key === "Escape" &&
|
|
1471
|
-
},
|
|
1469
|
+
}, Le = (f) => {
|
|
1470
|
+
l.searchForm.enableCellCopy && ((f.ctrlKey || f.metaKey) && f.key === "c" ? y.selectedCells.length > 0 && (f.preventDefault(), f.stopPropagation(), wt()) : f.key === "Escape" && Ie());
|
|
1471
|
+
}, We = () => {
|
|
1472
1472
|
y.isSelecting = !1;
|
|
1473
|
-
},
|
|
1473
|
+
}, Ze = (f) => {
|
|
1474
1474
|
const c = m.value;
|
|
1475
1475
|
if (!c || !c.$el)
|
|
1476
1476
|
return;
|
|
1477
|
-
c.$el.contains(f.target) ||
|
|
1477
|
+
c.$el.contains(f.target) || Ie();
|
|
1478
1478
|
}, Ct = (f) => {
|
|
1479
1479
|
g[b] = f, L();
|
|
1480
1480
|
}, xt = (f) => {
|
|
1481
1481
|
g[p] = f, g[b] = 1, L();
|
|
1482
1482
|
};
|
|
1483
|
-
function
|
|
1483
|
+
function Ge() {
|
|
1484
1484
|
const f = m.value.getCheckboxRecords();
|
|
1485
1485
|
l.searchForm.selections = f;
|
|
1486
1486
|
}
|
|
1487
|
-
const
|
|
1487
|
+
const Je = (f) => {
|
|
1488
1488
|
const c = m.value;
|
|
1489
1489
|
if (c) {
|
|
1490
1490
|
c.toggleCheckboxRow(f);
|
|
@@ -1492,17 +1492,17 @@ const wn = { class: "center" }, Cn = {
|
|
|
1492
1492
|
l.searchForm.selections = $;
|
|
1493
1493
|
}
|
|
1494
1494
|
};
|
|
1495
|
-
return e({ tableRef: m, getList: L, getPrm: C, clearSort:
|
|
1495
|
+
return e({ tableRef: m, getList: L, getPrm: C, clearSort: O, calculateTableHeight: k }), (f, c) => {
|
|
1496
1496
|
var q;
|
|
1497
|
-
const $ =
|
|
1497
|
+
const $ = M("el-button"), T = M("el-checkbox"), j = M("el-text"), W = M("vxe-column"), V = M("VxeTable"), le = M("el-pagination");
|
|
1498
1498
|
return I(), re("div", {
|
|
1499
|
-
class:
|
|
1499
|
+
class: qe({ box: t.searchForm.showShadow })
|
|
1500
1500
|
}, [
|
|
1501
|
-
t.searchForm.showSearch ? (I(), H(
|
|
1501
|
+
t.searchForm.showSearch ? (I(), H(vo, {
|
|
1502
1502
|
key: 0,
|
|
1503
1503
|
form: t.searchForm,
|
|
1504
1504
|
onReset: d,
|
|
1505
|
-
onConfirm: c[1] || (c[1] = (
|
|
1505
|
+
onConfirm: c[1] || (c[1] = (E) => L()),
|
|
1506
1506
|
onVisibleChange: K(k)
|
|
1507
1507
|
}, {
|
|
1508
1508
|
btn: D(() => [
|
|
@@ -1511,7 +1511,7 @@ const wn = { class: "center" }, Cn = {
|
|
|
1511
1511
|
z($, {
|
|
1512
1512
|
class: "mgl10",
|
|
1513
1513
|
round: "",
|
|
1514
|
-
onClick: c[0] || (c[0] = (
|
|
1514
|
+
onClick: c[0] || (c[0] = (E) => m.value.openCustom())
|
|
1515
1515
|
}, {
|
|
1516
1516
|
default: D(() => [
|
|
1517
1517
|
z(yt, { name: "Tools" })
|
|
@@ -1535,8 +1535,8 @@ const wn = { class: "center" }, Cn = {
|
|
|
1535
1535
|
border: ""
|
|
1536
1536
|
}, ue.value, {
|
|
1537
1537
|
height: S.value,
|
|
1538
|
-
onCheckboxChange:
|
|
1539
|
-
onCheckboxAll:
|
|
1538
|
+
onCheckboxChange: Ge,
|
|
1539
|
+
onCheckboxAll: Ge,
|
|
1540
1540
|
onSortChange: (q = ue.value["sort-config"]) == null ? void 0 : q.sortChange
|
|
1541
1541
|
}), {
|
|
1542
1542
|
default: D(() => [
|
|
@@ -1547,27 +1547,27 @@ const wn = { class: "center" }, Cn = {
|
|
|
1547
1547
|
title: f.$t("xu-hao"),
|
|
1548
1548
|
fixed: "left"
|
|
1549
1549
|
}, {
|
|
1550
|
-
checkbox: D(({ rowIndex:
|
|
1551
|
-
ae("div",
|
|
1550
|
+
checkbox: D(({ rowIndex: E, row: Y, checked: Z, disabled: P, indeterminate: G }) => [
|
|
1551
|
+
ae("div", wo, [
|
|
1552
1552
|
Z ? (I(), H(T, {
|
|
1553
1553
|
key: 0,
|
|
1554
1554
|
checked: !0,
|
|
1555
1555
|
disabled: P,
|
|
1556
1556
|
size: "default",
|
|
1557
|
-
onClick:
|
|
1557
|
+
onClick: Ve((N) => !P && Je(Y), ["stop"])
|
|
1558
1558
|
}, null, 8, ["disabled", "onClick"])) : (I(), H(T, {
|
|
1559
1559
|
key: 1,
|
|
1560
1560
|
disabled: P,
|
|
1561
1561
|
checked: !1,
|
|
1562
1562
|
size: "default",
|
|
1563
|
-
onClick:
|
|
1563
|
+
onClick: Ve((N) => !P && Je(Y), ["stop"])
|
|
1564
1564
|
}, null, 8, ["disabled", "onClick"])),
|
|
1565
|
-
z(
|
|
1565
|
+
z(j, {
|
|
1566
1566
|
type: "info",
|
|
1567
1567
|
class: "mgl5"
|
|
1568
1568
|
}, {
|
|
1569
1569
|
default: D(() => [
|
|
1570
|
-
Q(J(
|
|
1570
|
+
Q(J(E + 1), 1)
|
|
1571
1571
|
]),
|
|
1572
1572
|
_: 2
|
|
1573
1573
|
}, 1024)
|
|
@@ -1583,20 +1583,20 @@ const wn = { class: "center" }, Cn = {
|
|
|
1583
1583
|
t.searchForm.showPage ? (I(), H(le, {
|
|
1584
1584
|
key: 1,
|
|
1585
1585
|
"current-page": g[K(b)],
|
|
1586
|
-
"onUpdate:currentPage": c[2] || (c[2] = (
|
|
1586
|
+
"onUpdate:currentPage": c[2] || (c[2] = (E) => g[K(b)] = E),
|
|
1587
1587
|
class: "myPagination mgt10",
|
|
1588
1588
|
background: "",
|
|
1589
1589
|
layout: "total, sizes, prev, pager, next",
|
|
1590
1590
|
total: g.total,
|
|
1591
1591
|
"page-size": g[K(p)],
|
|
1592
|
-
"page-sizes": t.searchForm.pageSizes || K(
|
|
1592
|
+
"page-sizes": t.searchForm.pageSizes || K(n).pageSizes,
|
|
1593
1593
|
onCurrentChange: Ct,
|
|
1594
1594
|
onSizeChange: xt
|
|
1595
1595
|
}, null, 8, ["current-page", "total", "page-size", "page-sizes"])) : ce("", !0)
|
|
1596
1596
|
], 2);
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
|
-
},
|
|
1599
|
+
}, Qo = /* @__PURE__ */ $e(Co, [["__scopeId", "data-v-671764ec"]]), en = {
|
|
1600
1600
|
__name: "index",
|
|
1601
1601
|
props: {
|
|
1602
1602
|
sheetsConfig: {
|
|
@@ -1610,15 +1610,15 @@ const wn = { class: "center" }, Cn = {
|
|
|
1610
1610
|
},
|
|
1611
1611
|
setup(t) {
|
|
1612
1612
|
const e = t;
|
|
1613
|
-
function
|
|
1614
|
-
|
|
1613
|
+
function o() {
|
|
1614
|
+
oo(e.fileName, e.sheetsConfig);
|
|
1615
1615
|
}
|
|
1616
1616
|
return (a, r) => {
|
|
1617
|
-
const
|
|
1618
|
-
return I(), H(
|
|
1617
|
+
const n = M("el-link");
|
|
1618
|
+
return I(), H(n, he({
|
|
1619
1619
|
type: "primary",
|
|
1620
1620
|
underline: "never"
|
|
1621
|
-
}, a.$attrs, { onClick:
|
|
1621
|
+
}, a.$attrs, { onClick: o }), {
|
|
1622
1622
|
default: D(() => [
|
|
1623
1623
|
Q(J(a.$t("xia-zai-dao-ru-mo-ban")), 1)
|
|
1624
1624
|
]),
|
|
@@ -1626,25 +1626,25 @@ const wn = { class: "center" }, Cn = {
|
|
|
1626
1626
|
}, 16);
|
|
1627
1627
|
};
|
|
1628
1628
|
}
|
|
1629
|
-
},
|
|
1629
|
+
}, xo = {
|
|
1630
1630
|
mounted(t, e) {
|
|
1631
|
-
e.value &&
|
|
1631
|
+
e.value && ot(t);
|
|
1632
1632
|
},
|
|
1633
1633
|
updated(t, e) {
|
|
1634
|
-
e.value ?
|
|
1634
|
+
e.value ? ot(t) : nt(t);
|
|
1635
1635
|
},
|
|
1636
1636
|
beforeUnmount(t) {
|
|
1637
1637
|
nt(t);
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
|
-
async function
|
|
1640
|
+
async function ot(t) {
|
|
1641
1641
|
await p();
|
|
1642
1642
|
const e = t.querySelector(".el-dialog");
|
|
1643
1643
|
if (!e)
|
|
1644
1644
|
return;
|
|
1645
|
-
const
|
|
1646
|
-
a.style.cssText += "overflow: hidden;",
|
|
1647
|
-
let r = !1,
|
|
1645
|
+
const o = t.querySelector(".el-dialog__header"), a = t.querySelector(".el-overlay");
|
|
1646
|
+
a.style.cssText += "overflow: hidden;", o.style.cursor = "move";
|
|
1647
|
+
let r = !1, n = {
|
|
1648
1648
|
// 数据源,不变部分为:window信息、dialog信息、mouse初始值信息,可变部分为:拖拽坐标位移
|
|
1649
1649
|
window: {
|
|
1650
1650
|
// window信息
|
|
@@ -1670,25 +1670,25 @@ async function tt(t) {
|
|
|
1670
1670
|
y: 0
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
|
-
|
|
1673
|
+
o.addEventListener("mousedown", i), document.addEventListener("mousemove", v), document.addEventListener("mouseup", w), window.addEventListener("resize", b);
|
|
1674
1674
|
function l() {
|
|
1675
|
-
|
|
1675
|
+
n.mouse.x - n.drag.x >= n.dialog.x && (n.drag.x = n.mouse.x - n.dialog.x), n.drag.x - n.mouse.x >= n.window.width - (n.dialog.x + n.dialog.width) && (n.drag.x = n.mouse.x + n.window.width - n.dialog.x - n.dialog.width), n.mouse.y - n.drag.y >= n.dialog.y && (n.drag.y = n.mouse.y - n.dialog.y), n.drag.y - n.mouse.y >= n.window.height - (n.dialog.y + n.dialog.height) && (n.drag.y = n.mouse.y + n.window.height - n.dialog.y - n.dialog.height), s();
|
|
1676
1676
|
}
|
|
1677
1677
|
function s() {
|
|
1678
|
-
let g =
|
|
1679
|
-
e.style.cssText += `position: absolute; top: calc(${g}px - ${
|
|
1678
|
+
let g = n.drag.y - n.mouse.y + n.dialog.y, m = n.drag.x - n.mouse.x + n.dialog.x;
|
|
1679
|
+
e.style.cssText += `position: absolute; top: calc(${g}px - ${n.dialog.marginTop}); left: ${m}px;`;
|
|
1680
1680
|
}
|
|
1681
1681
|
function i(g) {
|
|
1682
|
-
g.button === 0 && (
|
|
1682
|
+
g.button === 0 && (n.window = {
|
|
1683
1683
|
width: document.body.clientWidth,
|
|
1684
1684
|
height: document.body.clientHeight
|
|
1685
|
-
},
|
|
1685
|
+
}, n.dialog = e.getBoundingClientRect(), n.dialog.marginTop = window.getComputedStyle(e).marginTop, n.mouse = {
|
|
1686
1686
|
x: g.clientX,
|
|
1687
1687
|
y: g.clientY
|
|
1688
1688
|
}, r = !0);
|
|
1689
1689
|
}
|
|
1690
1690
|
function v(g) {
|
|
1691
|
-
r && (
|
|
1691
|
+
r && (n.drag = {
|
|
1692
1692
|
x: g.clientX,
|
|
1693
1693
|
y: g.clientY
|
|
1694
1694
|
}, a.style.userSelect = "none", l());
|
|
@@ -1710,10 +1710,10 @@ async function tt(t) {
|
|
|
1710
1710
|
function nt(t) {
|
|
1711
1711
|
document.removeEventListener("mousedown", t.__mouseDown__), document.removeEventListener("mousemove", t.__mouseMove__), document.removeEventListener("mouseup", t.__mouseUp__), window.removeEventListener("resize", t.__sizeChange__);
|
|
1712
1712
|
}
|
|
1713
|
-
const
|
|
1713
|
+
const ko = {
|
|
1714
1714
|
key: 0,
|
|
1715
1715
|
class: "drawer-btn"
|
|
1716
|
-
},
|
|
1716
|
+
}, _o = { key: 1 }, tn = {
|
|
1717
1717
|
__name: "index",
|
|
1718
1718
|
props: {
|
|
1719
1719
|
layer: {
|
|
@@ -1733,19 +1733,19 @@ const kn = {
|
|
|
1733
1733
|
},
|
|
1734
1734
|
emits: ["confirm"],
|
|
1735
1735
|
setup(t, { emit: e }) {
|
|
1736
|
-
const
|
|
1736
|
+
const o = t, a = e, { t: r } = me(), n = Be(() => {
|
|
1737
1737
|
a("confirm");
|
|
1738
1738
|
}, 300);
|
|
1739
1739
|
async function l() {
|
|
1740
|
-
|
|
1740
|
+
o.layer.type == "drawer" ? o.layer.onClose ? o.layer.onClose() : await Ft.confirm(r("que-ding-guan-bi-ma"), {
|
|
1741
1741
|
confirmButtonText: r("que-ding"),
|
|
1742
1742
|
cancelButtonText: r("qu-xiao"),
|
|
1743
1743
|
type: "warning"
|
|
1744
1744
|
}).catch(() => {
|
|
1745
|
-
}) == "confirm" && (
|
|
1745
|
+
}) == "confirm" && (o.layer.show = !1) : o.layer.show = !1;
|
|
1746
1746
|
}
|
|
1747
1747
|
return (s, i) => {
|
|
1748
|
-
const v =
|
|
1748
|
+
const v = M("el-button"), w = M("el-drawer"), b = M("el-dialog");
|
|
1749
1749
|
return t.layer.type ? (I(), H(w, {
|
|
1750
1750
|
key: 0,
|
|
1751
1751
|
modelValue: t.layer.show,
|
|
@@ -1760,7 +1760,7 @@ const kn = {
|
|
|
1760
1760
|
default: D(() => [
|
|
1761
1761
|
X(s.$slots, "default"),
|
|
1762
1762
|
i[2] || (i[2] = ae("p", { class: "mgt50" }, null, -1)),
|
|
1763
|
-
t.layer.showButton ? (I(), re("div",
|
|
1763
|
+
t.layer.showButton ? (I(), re("div", ko, [
|
|
1764
1764
|
X(s.$slots, "btn", {}, () => [
|
|
1765
1765
|
z(v, { onClick: l }, {
|
|
1766
1766
|
default: D(() => [
|
|
@@ -1771,7 +1771,7 @@ const kn = {
|
|
|
1771
1771
|
z(v, {
|
|
1772
1772
|
type: "primary",
|
|
1773
1773
|
loading: t.loading,
|
|
1774
|
-
onClick: K(
|
|
1774
|
+
onClick: K(n)
|
|
1775
1775
|
}, {
|
|
1776
1776
|
default: D(() => [
|
|
1777
1777
|
Q(J(s.$t("ti-jiao")), 1)
|
|
@@ -1782,7 +1782,7 @@ const kn = {
|
|
|
1782
1782
|
])) : ce("", !0)
|
|
1783
1783
|
]),
|
|
1784
1784
|
_: 3
|
|
1785
|
-
}, 8, ["modelValue", "size", "title"])) : Vt((I(), re("div",
|
|
1785
|
+
}, 8, ["modelValue", "size", "title"])) : Vt((I(), re("div", _o, [
|
|
1786
1786
|
z(b, {
|
|
1787
1787
|
"close-on-click-modal": !1,
|
|
1788
1788
|
modelValue: t.layer.show,
|
|
@@ -1790,7 +1790,7 @@ const kn = {
|
|
|
1790
1790
|
title: t.layer.title,
|
|
1791
1791
|
width: t.layer.width || 500,
|
|
1792
1792
|
center: ""
|
|
1793
|
-
},
|
|
1793
|
+
}, rt({
|
|
1794
1794
|
default: D(() => [
|
|
1795
1795
|
X(s.$slots, "default")
|
|
1796
1796
|
]),
|
|
@@ -1808,7 +1808,7 @@ const kn = {
|
|
|
1808
1808
|
}),
|
|
1809
1809
|
z(v, {
|
|
1810
1810
|
type: "primary",
|
|
1811
|
-
onClick: K(
|
|
1811
|
+
onClick: K(n)
|
|
1812
1812
|
}, {
|
|
1813
1813
|
default: D(() => [
|
|
1814
1814
|
Q(J(s.$t("ti-jiao")), 1)
|
|
@@ -1821,13 +1821,13 @@ const kn = {
|
|
|
1821
1821
|
} : void 0
|
|
1822
1822
|
]), 1032, ["modelValue", "title", "width"])
|
|
1823
1823
|
])), [
|
|
1824
|
-
[K(
|
|
1824
|
+
[K(xo), t.layer.show]
|
|
1825
1825
|
]);
|
|
1826
1826
|
};
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
|
-
function
|
|
1830
|
-
const
|
|
1829
|
+
function on(t, e = {}) {
|
|
1830
|
+
const o = be(), a = {
|
|
1831
1831
|
inForm: !0,
|
|
1832
1832
|
required: !0,
|
|
1833
1833
|
...e
|
|
@@ -1835,8 +1835,8 @@ function no(t, e = {}) {
|
|
|
1835
1835
|
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}$/,
|
|
1836
1836
|
password: /(?=.*\d)(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,12}/,
|
|
1837
1837
|
email: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
|
|
1838
|
-
}[t], { inForm:
|
|
1839
|
-
return
|
|
1838
|
+
}[t], { inForm: n, value: l, required: s, msg: i = o("validate.invalidInput") } = a;
|
|
1839
|
+
return n ? function(v, w, b) {
|
|
1840
1840
|
if (s) {
|
|
1841
1841
|
r.test(w) ? b() : b(new Error(i));
|
|
1842
1842
|
return;
|
|
@@ -1844,7 +1844,7 @@ function no(t, e = {}) {
|
|
|
1844
1844
|
w && !r.test(w) ? b(new Error(i)) : b();
|
|
1845
1845
|
} : r.test(l);
|
|
1846
1846
|
}
|
|
1847
|
-
class
|
|
1847
|
+
class nn {
|
|
1848
1848
|
constructor(e = {}) {
|
|
1849
1849
|
this.config = {
|
|
1850
1850
|
clientCode: e.clientCode || "one-portal",
|
|
@@ -1866,8 +1866,8 @@ class oo {
|
|
|
1866
1866
|
*/
|
|
1867
1867
|
init() {
|
|
1868
1868
|
this.log("OnePortal CAS SDK 初始化中..."), this.loadFromStorage();
|
|
1869
|
-
const
|
|
1870
|
-
this.isLoggedIn() && this.config.loginCallback ? this.config.loginCallback(this.user, this.token) :
|
|
1869
|
+
const o = new URLSearchParams(window.location.search).get("ticket");
|
|
1870
|
+
this.isLoggedIn() && this.config.loginCallback ? this.config.loginCallback(this.user, this.token) : o ? (this.log("检测到ST票据:", o), this.validateTicket(o)) : this.config.autoLogin && !this.isLoggedIn() && (this.log("用户未登录,准备跳转到CAS登录页面"), this.login());
|
|
1871
1871
|
}
|
|
1872
1872
|
/**
|
|
1873
1873
|
* 从本地存储加载数据
|
|
@@ -1932,20 +1932,20 @@ class oo {
|
|
|
1932
1932
|
async validateTicket(e) {
|
|
1933
1933
|
try {
|
|
1934
1934
|
this.log("验证ST票据:", e);
|
|
1935
|
-
const
|
|
1935
|
+
const o = await fetch(`${this.config.casServerUrl}/auth/validateST?ticket=${e}`, {
|
|
1936
1936
|
method: "GET",
|
|
1937
1937
|
headers: {
|
|
1938
1938
|
"Content-Type": "application/json"
|
|
1939
1939
|
}
|
|
1940
1940
|
});
|
|
1941
|
-
if (!
|
|
1942
|
-
throw new Error(`HTTP ${
|
|
1943
|
-
const a = await
|
|
1941
|
+
if (!o.ok)
|
|
1942
|
+
throw new Error(`HTTP ${o.status}: ${o.statusText}`);
|
|
1943
|
+
const a = await o.json();
|
|
1944
1944
|
if (a.success && a.data)
|
|
1945
1945
|
return this.token = a.data.token, this.user = a.data.user, this.saveToStorage(), this.clearTicketFromUrl(), this.log("ST票据验证成功,用户登录成功:", this.user), this.config.loginCallback && this.config.loginCallback(this.user, this.token), !0;
|
|
1946
1946
|
throw new Error(a.message || "ST票据验证失败");
|
|
1947
|
-
} catch (
|
|
1948
|
-
return this.log("ST票据验证失败:",
|
|
1947
|
+
} catch (o) {
|
|
1948
|
+
return this.log("ST票据验证失败:", o), this.handleError(o), !1;
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
1951
1951
|
/**
|
|
@@ -1970,24 +1970,24 @@ class oo {
|
|
|
1970
1970
|
"Content-Type": "application/json"
|
|
1971
1971
|
}
|
|
1972
1972
|
});
|
|
1973
|
-
} catch (
|
|
1974
|
-
this.log("调用服务端登出接口失败:",
|
|
1973
|
+
} catch (o) {
|
|
1974
|
+
this.log("调用服务端登出接口失败:", o);
|
|
1975
1975
|
}
|
|
1976
1976
|
this.token = null, this.user = null, this.clearStorage(), this.config.logoutCallback && this.config.logoutCallback(), e && this.login();
|
|
1977
|
-
} catch (
|
|
1978
|
-
this.log("登出失败:",
|
|
1977
|
+
} catch (o) {
|
|
1978
|
+
this.log("登出失败:", o), this.handleError(o);
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
/**
|
|
1982
1982
|
* 发送带认证的HTTP请求
|
|
1983
1983
|
*/
|
|
1984
|
-
async request(e,
|
|
1984
|
+
async request(e, o = {}) {
|
|
1985
1985
|
const a = {
|
|
1986
1986
|
headers: {
|
|
1987
1987
|
"Content-Type": "application/json",
|
|
1988
|
-
...
|
|
1988
|
+
...o.headers
|
|
1989
1989
|
},
|
|
1990
|
-
...
|
|
1990
|
+
...o
|
|
1991
1991
|
};
|
|
1992
1992
|
a.headers.appId = this.config.clientCode, this.token && (a.headers.Authorization = `Bearer ${this.token}`);
|
|
1993
1993
|
try {
|
|
@@ -2004,9 +2004,9 @@ class oo {
|
|
|
2004
2004
|
try {
|
|
2005
2005
|
const e = await this.request(`${this.config.casServerUrl}/auth/user`);
|
|
2006
2006
|
if (e && e.ok) {
|
|
2007
|
-
const
|
|
2008
|
-
if (
|
|
2009
|
-
return this.user =
|
|
2007
|
+
const o = await e.json();
|
|
2008
|
+
if (o.success && o.data)
|
|
2009
|
+
return this.user = o.data, this.saveToStorage(), this.user;
|
|
2010
2010
|
}
|
|
2011
2011
|
return null;
|
|
2012
2012
|
} catch (e) {
|
|
@@ -2040,8 +2040,8 @@ class oo {
|
|
|
2040
2040
|
/**
|
|
2041
2041
|
* 设置配置
|
|
2042
2042
|
*/
|
|
2043
|
-
setConfig(e,
|
|
2044
|
-
this.config[e] =
|
|
2043
|
+
setConfig(e, o) {
|
|
2044
|
+
this.config[e] = o;
|
|
2045
2045
|
}
|
|
2046
2046
|
/**
|
|
2047
2047
|
* 获取配置
|
|
@@ -2050,28 +2050,28 @@ class oo {
|
|
|
2050
2050
|
return this.config[e];
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function ln(t, e = {}) {
|
|
2054
2054
|
const a = Object.assign({
|
|
2055
2055
|
manual: !1,
|
|
2056
2056
|
// 手动执行
|
|
2057
2057
|
log: !1,
|
|
2058
2058
|
params: null,
|
|
2059
2059
|
format: null
|
|
2060
|
-
}, e), { manual: r, log:
|
|
2060
|
+
}, e), { manual: r, log: n, params: l = {}, cb: s, format: i } = a, v = R([]), w = R(!1), b = (p) => {
|
|
2061
2061
|
const g = p || l;
|
|
2062
2062
|
w.value = !0, t(g).then((m) => {
|
|
2063
2063
|
const { code: u, data: h, msg: k } = m;
|
|
2064
2064
|
if (s) {
|
|
2065
2065
|
const { records: _, rows: x } = h || {}, S = _ || x ? _ || x : h;
|
|
2066
|
-
v.value =
|
|
2066
|
+
v.value = ze(S, i), s(m);
|
|
2067
2067
|
}
|
|
2068
2068
|
if (h) {
|
|
2069
2069
|
if (h.records != null || h.rows != null) {
|
|
2070
2070
|
const { records: _, rows: x, total: S = 0 } = h || {};
|
|
2071
|
-
g && g.total != null && (l.total = parseInt(S)), v.value =
|
|
2071
|
+
g && g.total != null && (l.total = parseInt(S)), v.value = ze(_ || x || [], i);
|
|
2072
2072
|
} else
|
|
2073
|
-
v.value =
|
|
2074
|
-
|
|
2073
|
+
v.value = ze(h, i);
|
|
2074
|
+
n && console.log("useRequest-res", v.value);
|
|
2075
2075
|
}
|
|
2076
2076
|
}).catch((m) => {
|
|
2077
2077
|
s && (console.log("useRequestErr", m), s({ code: 500 }));
|
|
@@ -2081,204 +2081,204 @@ function lo(t, e = {}) {
|
|
|
2081
2081
|
};
|
|
2082
2082
|
return r || b(), [w, v, b];
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2085
|
-
const e = R(t),
|
|
2086
|
-
return
|
|
2087
|
-
const
|
|
2088
|
-
|
|
2089
|
-
}), [e,
|
|
2084
|
+
function an(t) {
|
|
2085
|
+
const e = R(t), o = R(""), a = R("");
|
|
2086
|
+
return Re(e, (r) => {
|
|
2087
|
+
const n = r || ["", ""];
|
|
2088
|
+
o.value = n[0], a.value = n[1];
|
|
2089
|
+
}), [e, o, a];
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function rn(t) {
|
|
2092
2092
|
return Object.prototype.toString.call(t).slice(8, -1).toLowerCase();
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function ze(t, e) {
|
|
2095
2095
|
if (!e)
|
|
2096
2096
|
return t;
|
|
2097
2097
|
if (t instanceof Array)
|
|
2098
2098
|
return t.map((a) => {
|
|
2099
2099
|
let r = {};
|
|
2100
|
-
return e.forEach((
|
|
2100
|
+
return e.forEach((n) => r[n] = a[n]), r;
|
|
2101
2101
|
});
|
|
2102
|
-
let
|
|
2103
|
-
return e.forEach((a) =>
|
|
2102
|
+
let o = {};
|
|
2103
|
+
return e.forEach((a) => o[a] = t[a]), o;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const { locale:
|
|
2107
|
-
return
|
|
2108
|
-
[
|
|
2105
|
+
function sn(t, e = []) {
|
|
2106
|
+
const { locale: o } = me(), a = R(t());
|
|
2107
|
+
return Re(
|
|
2108
|
+
[o, ...e],
|
|
2109
2109
|
() => {
|
|
2110
2110
|
a.value = t();
|
|
2111
2111
|
},
|
|
2112
2112
|
{ immediate: !0 }
|
|
2113
2113
|
), a;
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function cn(t, e = "zh_cn", o = "en_us") {
|
|
2116
2116
|
if (!t)
|
|
2117
2117
|
return "-";
|
|
2118
|
-
const a = { en_us:
|
|
2119
|
-
return t[a[
|
|
2118
|
+
const a = { en_us: o, zh_cn: e }, n = Ke().global.locale.value;
|
|
2119
|
+
return t[a[n]] || t[e] || "-";
|
|
2120
2120
|
}
|
|
2121
|
-
function
|
|
2122
|
-
let
|
|
2123
|
-
return typeof t == "string" && t.length > 0 && (
|
|
2121
|
+
function un(t, e) {
|
|
2122
|
+
let o = Pt;
|
|
2123
|
+
return typeof t == "string" && t.length > 0 && (o = Ye(t).mapState), bt(e, o);
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
let
|
|
2127
|
-
return typeof t == "string" && t.length > 0 && (
|
|
2125
|
+
function dn(t, e) {
|
|
2126
|
+
let o = Rt;
|
|
2127
|
+
return typeof t == "string" && t.length > 0 && (o = Ye(t).mapGetters), bt(e, o);
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2130
|
-
let
|
|
2131
|
-
return typeof t == "string" && t.length > 0 && (
|
|
2129
|
+
function fn(t, e) {
|
|
2130
|
+
let o = Bt;
|
|
2131
|
+
return typeof t == "string" && t.length > 0 && (o = Ye(t).mapActions), $o(e, o);
|
|
2132
2132
|
}
|
|
2133
2133
|
function bt(t, e) {
|
|
2134
|
-
const
|
|
2135
|
-
return Object.keys(a).forEach((
|
|
2136
|
-
const l = a[
|
|
2137
|
-
r[
|
|
2134
|
+
const o = ut(), a = e(t), r = {};
|
|
2135
|
+
return Object.keys(a).forEach((n) => {
|
|
2136
|
+
const l = a[n].bind({ $store: o });
|
|
2137
|
+
r[n] = se(l);
|
|
2138
2138
|
}), r;
|
|
2139
2139
|
}
|
|
2140
|
-
function $
|
|
2141
|
-
const
|
|
2142
|
-
return Object.keys(a).forEach((
|
|
2143
|
-
r[
|
|
2140
|
+
function $o(t, e) {
|
|
2141
|
+
const o = ut(), a = e(t), r = {};
|
|
2142
|
+
return Object.keys(a).forEach((n) => {
|
|
2143
|
+
r[n] = a[n].bind({ $store: o });
|
|
2144
2144
|
}), r;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function Me(t) {
|
|
2147
2147
|
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !qt(t);
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2150
|
-
|
|
2149
|
+
function hn() {
|
|
2150
|
+
xe.renderer.add("Enum", {
|
|
2151
2151
|
// 默认显示模板
|
|
2152
2152
|
renderTableDefault(t, e) {
|
|
2153
|
-
let
|
|
2153
|
+
let o;
|
|
2154
2154
|
if ([null, void 0].includes(e.row[e.column.field]))
|
|
2155
2155
|
return "-";
|
|
2156
2156
|
const a = e.row[e.column.field];
|
|
2157
2157
|
if (t.type == "tag") {
|
|
2158
2158
|
let r;
|
|
2159
|
-
return z(
|
|
2159
|
+
return z(M("el-text"), {
|
|
2160
2160
|
type: t.enum.getTag(a)
|
|
2161
|
-
},
|
|
2161
|
+
}, Me(r = t.enum.getName(a)) ? r : {
|
|
2162
2162
|
default: () => [r]
|
|
2163
2163
|
});
|
|
2164
2164
|
}
|
|
2165
|
-
return z(
|
|
2166
|
-
default: () => [
|
|
2165
|
+
return z(M("el-text"), null, Me(o = t.enum.getName(a)) ? o : {
|
|
2166
|
+
default: () => [o]
|
|
2167
2167
|
});
|
|
2168
2168
|
}
|
|
2169
|
-
}),
|
|
2169
|
+
}), xe.renderer.add("InputNumber", {
|
|
2170
2170
|
// 默认显示模板
|
|
2171
2171
|
renderTableDefault(t, e) {
|
|
2172
|
-
return z(
|
|
2172
|
+
return z(Et, he({
|
|
2173
2173
|
modelValue: e.row[e.column.field],
|
|
2174
|
-
"onUpdate:modelValue": (
|
|
2174
|
+
"onUpdate:modelValue": (o) => e.row[e.column.field] = o
|
|
2175
2175
|
}, t.props, {
|
|
2176
2176
|
"step-strictly": !0,
|
|
2177
2177
|
"value-on-clear": 0
|
|
2178
2178
|
}), null);
|
|
2179
2179
|
}
|
|
2180
|
-
}),
|
|
2180
|
+
}), xe.renderer.add("TrueFalse", {
|
|
2181
2181
|
// 默认显示模板
|
|
2182
2182
|
renderTableDefault(t, e) {
|
|
2183
2183
|
const {
|
|
2184
|
-
locale:
|
|
2184
|
+
locale: o
|
|
2185
2185
|
} = me();
|
|
2186
|
-
let a =
|
|
2186
|
+
let a = o.value == "zh_cn";
|
|
2187
2187
|
return z(It, {
|
|
2188
2188
|
type: e.row[e.column.field] ? "success" : "danger"
|
|
2189
2189
|
}, {
|
|
2190
2190
|
default: () => [e.row[e.column.field] ? a ? "是" : "YES" : a ? "否" : "NO"]
|
|
2191
2191
|
});
|
|
2192
2192
|
}
|
|
2193
|
-
}),
|
|
2193
|
+
}), xe.renderer.add("I18n", {
|
|
2194
2194
|
// 默认显示模板
|
|
2195
2195
|
renderTableDefault(t, e) {
|
|
2196
2196
|
const {
|
|
2197
|
-
locale:
|
|
2197
|
+
locale: o
|
|
2198
2198
|
} = me();
|
|
2199
|
-
let a =
|
|
2199
|
+
let a = o.value == "zh_cn" ? e.column.field : t.fieldEn;
|
|
2200
2200
|
return e.row[a] || e.row[e.column.field];
|
|
2201
2201
|
}
|
|
2202
|
-
}),
|
|
2202
|
+
}), xe.renderer.add("Link", {
|
|
2203
2203
|
// 默认显示模板
|
|
2204
2204
|
renderTableDefault(t, e) {
|
|
2205
2205
|
var s;
|
|
2206
|
-
let
|
|
2207
|
-
const a =
|
|
2206
|
+
let o = e.column.field;
|
|
2207
|
+
const a = jt(), {
|
|
2208
2208
|
multiple: r,
|
|
2209
|
-
to:
|
|
2209
|
+
to: n
|
|
2210
2210
|
} = t;
|
|
2211
2211
|
if (!r)
|
|
2212
|
-
return z(
|
|
2212
|
+
return z(Xe, {
|
|
2213
2213
|
underline: "never",
|
|
2214
2214
|
type: "primary",
|
|
2215
2215
|
onclick: () => a.push({
|
|
2216
|
-
path:
|
|
2216
|
+
path: n,
|
|
2217
2217
|
query: {
|
|
2218
|
-
[
|
|
2218
|
+
[o]: e.row[o]
|
|
2219
2219
|
}
|
|
2220
2220
|
})
|
|
2221
2221
|
}, {
|
|
2222
|
-
default: () => [e.row[
|
|
2222
|
+
default: () => [e.row[o]]
|
|
2223
2223
|
});
|
|
2224
|
-
const l = ((s = e.row[
|
|
2225
|
-
return l.map((i, v) => z("span", null, [z(
|
|
2224
|
+
const l = ((s = e.row[o]) == null ? void 0 : s.split(",")) || [];
|
|
2225
|
+
return l.map((i, v) => z("span", null, [z(Xe, {
|
|
2226
2226
|
underline: "never",
|
|
2227
2227
|
type: "primary",
|
|
2228
2228
|
onclick: () => a.push({
|
|
2229
|
-
path:
|
|
2229
|
+
path: n,
|
|
2230
2230
|
query: {
|
|
2231
|
-
[
|
|
2231
|
+
[o]: i
|
|
2232
2232
|
}
|
|
2233
2233
|
})
|
|
2234
|
-
},
|
|
2234
|
+
}, Me(i) ? i : {
|
|
2235
2235
|
default: () => [i]
|
|
2236
2236
|
}), v < l.length - 1 ? "," : ""]));
|
|
2237
2237
|
}
|
|
2238
2238
|
});
|
|
2239
2239
|
}
|
|
2240
2240
|
export {
|
|
2241
|
-
|
|
2241
|
+
so as CmpDictionary,
|
|
2242
2242
|
yt as CmpIcon,
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2243
|
+
Zo as ConfrimButton,
|
|
2244
|
+
en as DownExcelTemp,
|
|
2245
|
+
Go as ImportButton,
|
|
2246
|
+
Vo as LayOutForm,
|
|
2247
|
+
tn as Layer,
|
|
2248
|
+
Qo as ListPage,
|
|
2249
|
+
nn as OnePortalCasSDK,
|
|
2250
|
+
vo as SearchBar,
|
|
2251
|
+
tt as StatusMap,
|
|
2252
|
+
jo as _toRaw,
|
|
2253
|
+
rn as _typeOf,
|
|
2254
|
+
Ro as arrToStatusMap,
|
|
2255
|
+
Po as arrayToTree,
|
|
2256
|
+
Ko as checkFileSize,
|
|
2257
|
+
on as creatValidator,
|
|
2258
|
+
No as createImportFields,
|
|
2259
|
+
Ho as createListPageId,
|
|
2260
|
+
Ue as en_us,
|
|
2261
|
+
Ao as exportExcel,
|
|
2262
|
+
Ke as getI18n,
|
|
2263
|
+
be as getI18nT,
|
|
2264
|
+
bo as getListPageConfig,
|
|
2265
|
+
cn as getLocaleValue,
|
|
2266
|
+
Wo as getValueBykey,
|
|
2267
|
+
qo as importExcel,
|
|
2268
2268
|
Wt as messages,
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2269
|
+
hn as registerVxeRenderers,
|
|
2270
|
+
Xo as resetListPageConfig,
|
|
2271
|
+
Jo as setListPageConfig,
|
|
2272
2272
|
Zt as setupI18n,
|
|
2273
|
-
|
|
2273
|
+
Uo as sleep,
|
|
2274
2274
|
pt as stringToArray,
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2275
|
+
Bo as stripHtmlTags,
|
|
2276
|
+
Yo as unicode2Str,
|
|
2277
|
+
fn as useActions,
|
|
2278
|
+
an as useDatePicker,
|
|
2279
|
+
dn as useGetters,
|
|
2280
|
+
sn as useI18nReState,
|
|
2281
|
+
ln as useRequest,
|
|
2282
|
+
un as useState,
|
|
2283
|
+
Ae as zh_cn
|
|
2284
2284
|
};
|