joy-admin-components 0.1.51 → 0.1.53
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 +296 -287
- 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
1
|
import { ElForm as bt, ElRow as yt, ElCol as Ct, ElInputNumber as xt, ElText as wt, ElLink as Ne } from "element-plus";
|
|
2
|
-
import { defineComponent as Je, ref as q, onMounted as Qe, h as
|
|
2
|
+
import { defineComponent as Je, ref as q, onMounted as Qe, h as Le, mergeModels as Ze, useAttrs as kt, useModel as _t, computed as ne, watch as Pe, resolveComponent as V, unref as G, openBlock as D, createBlock as Y, mergeProps as he, createSlots as St, withCtx as U, createElementVNode as ae, toDisplayString as oe, renderSlot as re, createVNode as P, createTextVNode as se, createCommentVNode as fe, createElementBlock as de, Fragment as De, renderList as Xe, withModifiers as ze, nextTick as _e, resolveDynamicComponent as et, withKeys as $t, normalizeStyle as It, normalizeClass as Oe, reactive as ke, onUpdated as Ft, onUnmounted as Lt, isVNode as Tt } from "vue";
|
|
3
3
|
import { saveAs as Et } from "file-saver";
|
|
4
4
|
import tt from "exceljs";
|
|
5
|
-
import
|
|
6
|
-
import { createI18n as Dt, useI18n as
|
|
5
|
+
import Se from "dayjs";
|
|
6
|
+
import { createI18n as Dt, useI18n as ve } from "vue-i18n";
|
|
7
7
|
import { debounce as nt, cloneDeep as ot, isArray as Ge } from "lodash";
|
|
8
8
|
import { useRoute as zt, useRouter as Ot } from "vue-router";
|
|
9
9
|
import { createNamespacedHelpers as Ue, useStore as lt, mapState as Vt, mapGetters as Mt, mapActions as At } from "vuex";
|
|
10
10
|
import { VxeUI as Ce } from "vxe-pc-ui";
|
|
11
|
-
const
|
|
11
|
+
const $n = Je({
|
|
12
12
|
name: "LayOutForm",
|
|
13
13
|
setup(n, { slots: e, attrs: t, emit: o }) {
|
|
14
14
|
const a = q(null), r = () => e.default ? e.default().filter((u) => u.type !== Symbol.for("v-cmt")).map((u) => u.type === Symbol.for("v-fgt") ? u.children : u).flat().map(
|
|
15
15
|
(u) => {
|
|
16
16
|
var d;
|
|
17
|
-
return
|
|
17
|
+
return Le(
|
|
18
18
|
Ct,
|
|
19
19
|
{ span: ((d = u.props) == null ? void 0 : d.span) || 24 },
|
|
20
20
|
{
|
|
@@ -27,10 +27,10 @@ const Sn = Je({
|
|
|
27
27
|
o("ref", a.value);
|
|
28
28
|
});
|
|
29
29
|
function l() {
|
|
30
|
-
return
|
|
30
|
+
return Le(
|
|
31
31
|
bt,
|
|
32
32
|
{ ...t, ref: a },
|
|
33
|
-
() =>
|
|
33
|
+
() => Le(yt, { gutter: t.gutter ?? 20 }, { default: () => r() })
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
36
|
return l;
|
|
@@ -57,9 +57,9 @@ var st = { exports: {} };
|
|
|
57
57
|
}, d.local = function() {
|
|
58
58
|
return u(this.toDate(), { locale: this.$L, utc: !1 });
|
|
59
59
|
};
|
|
60
|
-
var
|
|
60
|
+
var k = d.parse;
|
|
61
61
|
d.parse = function(f) {
|
|
62
|
-
f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset),
|
|
62
|
+
f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), k.call(this, f);
|
|
63
63
|
};
|
|
64
64
|
var x = d.init;
|
|
65
65
|
d.init = function() {
|
|
@@ -71,9 +71,9 @@ var st = { exports: {} };
|
|
|
71
71
|
};
|
|
72
72
|
var C = d.utcOffset;
|
|
73
73
|
d.utcOffset = function(f, h) {
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return this.$u ? 0 :
|
|
74
|
+
var _ = this.$utils().u;
|
|
75
|
+
if (_(f))
|
|
76
|
+
return this.$u ? 0 : _(this.$offset) ? C.call(this) : this.$offset;
|
|
77
77
|
if (typeof f == "string" && (f = function(I) {
|
|
78
78
|
I === void 0 && (I = "");
|
|
79
79
|
var W = I.match(o);
|
|
@@ -83,14 +83,14 @@ var st = { exports: {} };
|
|
|
83
83
|
return p === 0 ? 0 : i === "+" ? p : -p;
|
|
84
84
|
}(f), f === null))
|
|
85
85
|
return this;
|
|
86
|
-
var
|
|
87
|
-
if (
|
|
86
|
+
var w = Math.abs(f) <= 16 ? 60 * f : f;
|
|
87
|
+
if (w === 0)
|
|
88
88
|
return this.utc(h);
|
|
89
89
|
var S = this.clone();
|
|
90
90
|
if (h)
|
|
91
|
-
return S.$offset =
|
|
91
|
+
return S.$offset = w, S.$u = !1, S;
|
|
92
92
|
var z = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
93
|
-
return (S = this.local().add(
|
|
93
|
+
return (S = this.local().add(w + z, t)).$offset = w, S.$x.$localOffset = z, S;
|
|
94
94
|
};
|
|
95
95
|
var v = d.format;
|
|
96
96
|
d.format = function(f) {
|
|
@@ -111,11 +111,11 @@ var st = { exports: {} };
|
|
|
111
111
|
return f === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : b.call(this);
|
|
112
112
|
};
|
|
113
113
|
var g = d.diff;
|
|
114
|
-
d.diff = function(f, h,
|
|
114
|
+
d.diff = function(f, h, _) {
|
|
115
115
|
if (f && this.$u === f.$u)
|
|
116
|
-
return g.call(this, f, h,
|
|
117
|
-
var
|
|
118
|
-
return g.call(
|
|
116
|
+
return g.call(this, f, h, _);
|
|
117
|
+
var w = this.local(), S = u(f).local();
|
|
118
|
+
return g.call(w, S, h, _);
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
});
|
|
@@ -131,15 +131,15 @@ var it = { exports: {} };
|
|
|
131
131
|
return function(a, r, l) {
|
|
132
132
|
var u, d = function(v, b, g) {
|
|
133
133
|
g === void 0 && (g = {});
|
|
134
|
-
var f = new Date(v), h = function(
|
|
135
|
-
|
|
136
|
-
var S =
|
|
137
|
-
return I || (I = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
134
|
+
var f = new Date(v), h = function(_, w) {
|
|
135
|
+
w === void 0 && (w = {});
|
|
136
|
+
var S = w.timeZoneName || "short", z = _ + "|" + S, I = o[z];
|
|
137
|
+
return I || (I = 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: S }), o[z] = I), I;
|
|
138
138
|
}(b, g);
|
|
139
139
|
return h.formatToParts(f);
|
|
140
|
-
},
|
|
140
|
+
}, k = function(v, b) {
|
|
141
141
|
for (var g = d(v, b), f = [], h = 0; h < g.length; h += 1) {
|
|
142
|
-
var
|
|
142
|
+
var _ = g[h], w = _.type, S = _.value, z = t[w];
|
|
143
143
|
z >= 0 && (f[z] = parseInt(S, 10));
|
|
144
144
|
}
|
|
145
145
|
var I = f[3], W = I === 24 ? 0 : I, M = f[0] + "-" + f[1] + "-" + f[2] + " " + W + ":" + f[4] + ":" + f[5] + ":000", i = +v;
|
|
@@ -147,10 +147,10 @@ var it = { exports: {} };
|
|
|
147
147
|
}, x = r.prototype;
|
|
148
148
|
x.tz = function(v, b) {
|
|
149
149
|
v === void 0 && (v = u);
|
|
150
|
-
var g, f = this.utcOffset(), h = this.toDate(),
|
|
150
|
+
var g, f = this.utcOffset(), h = this.toDate(), _ = h.toLocaleString("en-US", { timeZone: v }), w = Math.round((h - new Date(_)) / 1e3 / 60), S = 15 * -Math.round(h.getTimezoneOffset() / 15) - w;
|
|
151
151
|
if (!Number(S))
|
|
152
152
|
g = this.utcOffset(0, b);
|
|
153
|
-
else if (g = l(
|
|
153
|
+
else if (g = l(_, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(S, !0), b) {
|
|
154
154
|
var z = g.utcOffset();
|
|
155
155
|
g = g.add(f - z, "minute");
|
|
156
156
|
}
|
|
@@ -168,16 +168,16 @@ var it = { exports: {} };
|
|
|
168
168
|
var g = l(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
169
169
|
return C.call(g, v, b).tz(this.$x.$timezone, !0);
|
|
170
170
|
}, l.tz = function(v, b, g) {
|
|
171
|
-
var f = g && b, h = g || b || u,
|
|
171
|
+
var f = g && b, h = g || b || u, _ = k(+l(), h);
|
|
172
172
|
if (typeof v != "string")
|
|
173
173
|
return l(v).tz(h);
|
|
174
|
-
var
|
|
175
|
-
var p = W - 60 * M * 1e3, L =
|
|
174
|
+
var w = function(W, M, i) {
|
|
175
|
+
var p = W - 60 * M * 1e3, L = k(p, i);
|
|
176
176
|
if (M === L)
|
|
177
177
|
return [p, M];
|
|
178
|
-
var O =
|
|
178
|
+
var O = k(p -= 60 * (L - M) * 1e3, i);
|
|
179
179
|
return L === O ? [p, L] : [W - 60 * Math.min(L, O) * 1e3, Math.max(L, O)];
|
|
180
|
-
}(l.utc(v, f).valueOf(),
|
|
180
|
+
}(l.utc(v, f).valueOf(), _, h), S = w[0], z = w[1], I = l(S).utcOffset(z);
|
|
181
181
|
return I.$x.$timezone = h, I;
|
|
182
182
|
}, l.tz.guess = function() {
|
|
183
183
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -252,28 +252,28 @@ const jt = /* @__PURE__ */ rt(Rt), Ve = {
|
|
|
252
252
|
zh_cn: Ve,
|
|
253
253
|
en: Me
|
|
254
254
|
};
|
|
255
|
-
let
|
|
255
|
+
let pe = null;
|
|
256
256
|
function Bt(n = null) {
|
|
257
257
|
if (n) {
|
|
258
258
|
const { global: e } = n;
|
|
259
|
-
return e.messages.value.zh_cn ? e.mergeLocaleMessage("zh_cn", Ve) : e.setLocaleMessage("zh_cn", Ve), e.messages.value.en ? e.mergeLocaleMessage("en", Me) : e.setLocaleMessage("en", Me),
|
|
259
|
+
return e.messages.value.zh_cn ? e.mergeLocaleMessage("zh_cn", Ve) : e.setLocaleMessage("zh_cn", Ve), e.messages.value.en ? e.mergeLocaleMessage("en", Me) : e.setLocaleMessage("en", Me), pe = n, n;
|
|
260
260
|
}
|
|
261
|
-
return
|
|
261
|
+
return pe || (pe = Dt({
|
|
262
262
|
legacy: !1,
|
|
263
263
|
locale: "zh_cn",
|
|
264
264
|
fallbackLocale: "zh_cn",
|
|
265
265
|
messages: qt
|
|
266
|
-
})),
|
|
266
|
+
})), pe;
|
|
267
267
|
}
|
|
268
268
|
function ct() {
|
|
269
|
-
return
|
|
269
|
+
return pe || Bt();
|
|
270
270
|
}
|
|
271
271
|
function Re() {
|
|
272
272
|
return ct().global.t;
|
|
273
273
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
async function
|
|
274
|
+
Se.extend(Ut);
|
|
275
|
+
Se.extend(jt);
|
|
276
|
+
async function In(n, e) {
|
|
277
277
|
const { fields: t, range: o = 1 } = e;
|
|
278
278
|
if (!t) {
|
|
279
279
|
const l = Re();
|
|
@@ -284,11 +284,11 @@ async function $n(n, e) {
|
|
|
284
284
|
const r = {};
|
|
285
285
|
return a.eachSheet(function(l, u) {
|
|
286
286
|
const d = [];
|
|
287
|
-
l.eachRow(function(
|
|
287
|
+
l.eachRow(function(k, x) {
|
|
288
288
|
if (x > o) {
|
|
289
289
|
let C = {}, v = !0;
|
|
290
290
|
Object.keys(t).forEach((b) => {
|
|
291
|
-
const g =
|
|
291
|
+
const g = k.getCell(t[b]).value;
|
|
292
292
|
C[b] = g, g && (v = !1);
|
|
293
293
|
}), v || d.push(C);
|
|
294
294
|
}
|
|
@@ -308,10 +308,10 @@ async function Kt(n, e, t = [], o = {}) {
|
|
|
308
308
|
const { workbook: l, worksheet: u } = Ht();
|
|
309
309
|
u.columns = e, u.addRows(t), a && await Nt(l, u, a);
|
|
310
310
|
try {
|
|
311
|
-
const d = await l.xlsx.writeBuffer(),
|
|
311
|
+
const d = await l.xlsx.writeBuffer(), k = new File([d], n, {
|
|
312
312
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
313
313
|
});
|
|
314
|
-
Et(
|
|
314
|
+
Et(k);
|
|
315
315
|
} catch (d) {
|
|
316
316
|
console.log(d);
|
|
317
317
|
}
|
|
@@ -351,10 +351,10 @@ async function Zt(n, e, t, o) {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
async function Gt(n, e, t, o) {
|
|
354
|
-
const { col: a, row: r, width: l, height: u } = o, { success: d, base64:
|
|
354
|
+
const { col: a, row: r, width: l, height: u } = o, { success: d, base64: k } = await Wt(t, 0.3);
|
|
355
355
|
if (d) {
|
|
356
356
|
const x = n.addImage({
|
|
357
|
-
base64:
|
|
357
|
+
base64: k,
|
|
358
358
|
extension: "jpeg"
|
|
359
359
|
});
|
|
360
360
|
e.addImage(x, {
|
|
@@ -386,17 +386,17 @@ function Jt(n) {
|
|
|
386
386
|
return e + t;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Fn(n) {
|
|
390
390
|
return new Promise((e) => {
|
|
391
391
|
setTimeout(() => {
|
|
392
392
|
e();
|
|
393
393
|
}, n);
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Ln(n) {
|
|
397
397
|
return JSON.parse(JSON.stringify(n));
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Tn(n) {
|
|
400
400
|
let e = [], t = {}, o = (a, r) => Object.prototype.hasOwnProperty.call(a, r);
|
|
401
401
|
for (const a of n) {
|
|
402
402
|
t[a.id] = {
|
|
@@ -452,7 +452,7 @@ class We {
|
|
|
452
452
|
return this.map.has(e);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function En(n, e = [], t = "i18nName") {
|
|
456
456
|
if (n.length == 0)
|
|
457
457
|
return new We([]);
|
|
458
458
|
if (e.length < 2) {
|
|
@@ -467,27 +467,27 @@ function Tn(n, e = [], t = "i18nName") {
|
|
|
467
467
|
});
|
|
468
468
|
return new We(o);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Dn(n) {
|
|
471
471
|
return n ? n.replace(/<[^>]+>/g, "") : "";
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function zn(n) {
|
|
474
474
|
return n ? (n.includes("\\\\u") && (n = n.replace(/\\/g, "")), n.replace(/\\u[\dA-F]{4}/gi, (e) => String.fromCharCode(parseInt(e.replace(/\\u/g, ""), 16)))) : "";
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function On(n, e = 10) {
|
|
477
477
|
let t = 1048576 * e;
|
|
478
478
|
return !(n.size > t);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function Vn(n) {
|
|
481
481
|
return Array.from(10).fill(0).map((t, o) => n + "_" + o);
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function Mn(n) {
|
|
484
484
|
let e = {};
|
|
485
485
|
return n.map((t, o) => {
|
|
486
486
|
let { key: a, option: r, type: l } = t, u = Jt(o);
|
|
487
487
|
r ? e[a] = `${u}---option` : l === "image" ? e[a] = `${u}---image` : e[a] = u;
|
|
488
488
|
}), e;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function An(n, e) {
|
|
491
491
|
return e.split(".").reduce((t, o) => t && t[o], n);
|
|
492
492
|
}
|
|
493
493
|
const we = (n, e) => {
|
|
@@ -495,7 +495,7 @@ const we = (n, e) => {
|
|
|
495
495
|
for (const [o, a] of e)
|
|
496
496
|
t[o] = a;
|
|
497
497
|
return t;
|
|
498
|
-
}, Qt = {
|
|
498
|
+
}, Qt = ["onClick"], Xt = {
|
|
499
499
|
__name: "index",
|
|
500
500
|
props: /* @__PURE__ */ Ze({
|
|
501
501
|
api: {
|
|
@@ -535,25 +535,25 @@ const we = (n, e) => {
|
|
|
535
535
|
}),
|
|
536
536
|
emits: /* @__PURE__ */ Ze(["success", "change"], ["update:modelValue"]),
|
|
537
537
|
setup(n, { emit: e }) {
|
|
538
|
-
const t = n, o = kt(), { t: a, locale: r } =
|
|
538
|
+
const t = n, o = kt(), { t: a, locale: r } = ve(), l = _t(n, "modelValue"), u = ne(() => o["value-key"] != null), d = q(""), k = ne(() => {
|
|
539
539
|
if (o.remote !== void 0)
|
|
540
540
|
return t.data;
|
|
541
541
|
const i = ut(d.value), { data: p, labelValue: L } = t, O = p || v.value;
|
|
542
542
|
if (i.length == 0)
|
|
543
543
|
return O;
|
|
544
|
-
const { label: ee, labelEn:
|
|
545
|
-
let m = r.value == "en_us" ?
|
|
544
|
+
const { label: ee, labelEn: ie } = L;
|
|
545
|
+
let m = r.value == "en_us" ? ie || "i18nName" : ee;
|
|
546
546
|
return i.length == 1 ? O.filter(
|
|
547
|
-
(
|
|
548
|
-
) : O.filter((
|
|
549
|
-
let
|
|
550
|
-
return
|
|
551
|
-
(be) =>
|
|
552
|
-
),
|
|
547
|
+
(le) => le[m].toLowerCase().includes(i[0].toLowerCase())
|
|
548
|
+
) : O.filter((le) => {
|
|
549
|
+
let me = !1;
|
|
550
|
+
return me = i.some(
|
|
551
|
+
(be) => le[m].toLowerCase() == be.toLowerCase()
|
|
552
|
+
), me;
|
|
553
553
|
});
|
|
554
554
|
}), x = ne({
|
|
555
555
|
get() {
|
|
556
|
-
return o.multiple == null || l.value == null ? !1 : l.value.length ==
|
|
556
|
+
return o.multiple == null || l.value == null ? !1 : l.value.length == k.value.length;
|
|
557
557
|
},
|
|
558
558
|
set(i) {
|
|
559
559
|
return i;
|
|
@@ -579,13 +579,15 @@ const we = (n, e) => {
|
|
|
579
579
|
}), p.join("-");
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
|
-
function
|
|
582
|
+
function _(i) {
|
|
583
583
|
let p = t.data ? t.data : v.value;
|
|
584
584
|
l.value = i ? p.map(
|
|
585
585
|
(L) => u.value ? L : L[t.labelValue.value]
|
|
586
|
-
) : [],
|
|
586
|
+
) : [], _e(() => {
|
|
587
|
+
C("change", l.value);
|
|
588
|
+
});
|
|
587
589
|
}
|
|
588
|
-
function
|
|
590
|
+
function w(i) {
|
|
589
591
|
t.optionClick && t.optionClick(i), C("change", u.value ? i : i[t.labelValue.value]);
|
|
590
592
|
}
|
|
591
593
|
function S(i) {
|
|
@@ -619,7 +621,7 @@ const we = (n, e) => {
|
|
|
619
621
|
);
|
|
620
622
|
const M = ne(() => I.value);
|
|
621
623
|
return (i, p) => {
|
|
622
|
-
const L = V("el-checkbox"), O = V("el-select-v2"), ee = V("el-option"),
|
|
624
|
+
const L = V("el-checkbox"), O = V("el-select-v2"), ee = V("el-option"), ie = V("el-select");
|
|
623
625
|
return G(o).v2 != null ? (D(), Y(O, he({
|
|
624
626
|
key: 0,
|
|
625
627
|
options: M.value,
|
|
@@ -632,19 +634,26 @@ const we = (n, e) => {
|
|
|
632
634
|
clearable: "",
|
|
633
635
|
onChange: g,
|
|
634
636
|
onClear: g
|
|
635
|
-
}), St({
|
|
637
|
+
}), St({
|
|
638
|
+
default: U(({ item: m }) => [
|
|
639
|
+
ae("div", {
|
|
640
|
+
onClick: (ge) => w(m)
|
|
641
|
+
}, oe(m.label), 9, Qt)
|
|
642
|
+
]),
|
|
643
|
+
_: 2
|
|
644
|
+
}, [
|
|
636
645
|
G(o).multiple != null ? {
|
|
637
646
|
name: "header",
|
|
638
|
-
fn:
|
|
639
|
-
|
|
647
|
+
fn: U(() => [
|
|
648
|
+
re(i.$slots, "header", {}, () => [
|
|
640
649
|
P(L, {
|
|
641
650
|
class: "mgl20",
|
|
642
651
|
modelValue: x.value,
|
|
643
652
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => x.value = m),
|
|
644
|
-
onChange:
|
|
653
|
+
onChange: _
|
|
645
654
|
}, {
|
|
646
|
-
default:
|
|
647
|
-
|
|
655
|
+
default: U(() => [
|
|
656
|
+
se(oe(i.$t("quan-xuan")), 1)
|
|
648
657
|
]),
|
|
649
658
|
_: 1
|
|
650
659
|
}, 8, ["modelValue"])
|
|
@@ -652,7 +661,7 @@ const we = (n, e) => {
|
|
|
652
661
|
]),
|
|
653
662
|
key: "0"
|
|
654
663
|
} : void 0
|
|
655
|
-
]), 1040, ["options", "modelValue"])) : (D(), Y(
|
|
664
|
+
]), 1040, ["options", "modelValue"])) : (D(), Y(ie, he({
|
|
656
665
|
key: 1,
|
|
657
666
|
modelValue: l.value,
|
|
658
667
|
"onUpdate:modelValue": p[3] || (p[3] = (m) => l.value = m),
|
|
@@ -662,25 +671,25 @@ const we = (n, e) => {
|
|
|
662
671
|
"filter-method": G(o).remote != null ? void 0 : (m) => d.value = m,
|
|
663
672
|
clearable: ""
|
|
664
673
|
}, G(o), { onClear: n.optionClick }), {
|
|
665
|
-
default:
|
|
666
|
-
G(o).multiple != null && n.showCheckAll && n.maxLimit == null ?
|
|
674
|
+
default: U(() => [
|
|
675
|
+
G(o).multiple != null && n.showCheckAll && n.maxLimit == null ? re(i.$slots, "header", { key: 0 }, () => [
|
|
667
676
|
P(L, {
|
|
668
677
|
class: "mgl20",
|
|
669
678
|
modelValue: x.value,
|
|
670
679
|
"onUpdate:modelValue": p[2] || (p[2] = (m) => x.value = m),
|
|
671
|
-
onChange:
|
|
680
|
+
onChange: _
|
|
672
681
|
}, {
|
|
673
|
-
default:
|
|
674
|
-
|
|
682
|
+
default: U(() => [
|
|
683
|
+
se(oe(i.$t("quan-xuan")), 1)
|
|
675
684
|
]),
|
|
676
685
|
_: 1
|
|
677
686
|
}, 8, ["modelValue"])
|
|
678
687
|
], !0) : fe("", !0),
|
|
679
|
-
(D(!0),
|
|
680
|
-
key:
|
|
688
|
+
(D(!0), de(De, null, Xe(k.value, (m, ge) => (D(), Y(ee, {
|
|
689
|
+
key: ge,
|
|
681
690
|
label: h(m),
|
|
682
691
|
disabled: G(o).multiple != null && n.maxLimit > 0 ? S(m) : !1,
|
|
683
|
-
onClick: ze((
|
|
692
|
+
onClick: ze((le) => w(m), ["stop"]),
|
|
684
693
|
value: u.value ? m : m[n.labelValue.value]
|
|
685
694
|
}, null, 8, ["label", "disabled", "onClick", "value"]))), 128))
|
|
686
695
|
]),
|
|
@@ -688,8 +697,8 @@ const we = (n, e) => {
|
|
|
688
697
|
}, 16, ["modelValue", "filter-method", "onClear"]));
|
|
689
698
|
};
|
|
690
699
|
}
|
|
691
|
-
},
|
|
692
|
-
const
|
|
700
|
+
}, en = /* @__PURE__ */ we(Xt, [["__scopeId", "data-v-447da9df"]]);
|
|
701
|
+
const tn = Je({
|
|
693
702
|
props: {
|
|
694
703
|
name: {
|
|
695
704
|
tyepe: String,
|
|
@@ -697,16 +706,16 @@ const en = Je({
|
|
|
697
706
|
}
|
|
698
707
|
}
|
|
699
708
|
});
|
|
700
|
-
function
|
|
709
|
+
function nn(n, e, t, o, a, r) {
|
|
701
710
|
const l = V("el-icon");
|
|
702
711
|
return D(), Y(l, { class: "cmp-icon" }, {
|
|
703
|
-
default:
|
|
712
|
+
default: U(() => [
|
|
704
713
|
(D(), Y(et(n.name)))
|
|
705
714
|
]),
|
|
706
715
|
_: 1
|
|
707
716
|
});
|
|
708
717
|
}
|
|
709
|
-
const dt = /* @__PURE__ */ we(
|
|
718
|
+
const dt = /* @__PURE__ */ we(tn, [["render", nn], ["__scopeId", "data-v-733f9daa"]]), Pn = {
|
|
710
719
|
__name: "index",
|
|
711
720
|
emits: ["ok", "no"],
|
|
712
721
|
setup(n, { emit: e }) {
|
|
@@ -722,13 +731,13 @@ const dt = /* @__PURE__ */ we(en, [["render", tn], ["__scopeId", "data-v-733f9da
|
|
|
722
731
|
onConfirm: G(o),
|
|
723
732
|
onCancel: a
|
|
724
733
|
}), {
|
|
725
|
-
reference:
|
|
734
|
+
reference: U(() => [
|
|
726
735
|
P(u, {
|
|
727
736
|
underline: "never",
|
|
728
737
|
type: r.$attrs.type
|
|
729
738
|
}, {
|
|
730
|
-
default:
|
|
731
|
-
|
|
739
|
+
default: U(() => [
|
|
740
|
+
re(r.$slots, "default")
|
|
732
741
|
]),
|
|
733
742
|
_: 3
|
|
734
743
|
}, 8, ["type"])
|
|
@@ -738,7 +747,7 @@ const dt = /* @__PURE__ */ we(en, [["render", tn], ["__scopeId", "data-v-733f9da
|
|
|
738
747
|
};
|
|
739
748
|
}
|
|
740
749
|
};
|
|
741
|
-
const
|
|
750
|
+
const on = ["accept"], ln = {
|
|
742
751
|
__name: "index",
|
|
743
752
|
props: {
|
|
744
753
|
accept: {
|
|
@@ -759,29 +768,29 @@ const nn = ["accept"], on = {
|
|
|
759
768
|
}
|
|
760
769
|
return (r, l) => {
|
|
761
770
|
const u = V("el-button");
|
|
762
|
-
return D(),
|
|
771
|
+
return D(), de("span", null, [
|
|
763
772
|
P(u, {
|
|
764
773
|
loading: n.loading,
|
|
765
774
|
class: "mgr10",
|
|
766
775
|
onClick: l[0] || (l[0] = (d) => o.value.click())
|
|
767
776
|
}, {
|
|
768
|
-
default:
|
|
769
|
-
|
|
777
|
+
default: U(() => [
|
|
778
|
+
se(oe(r.$t("dao-ru")), 1)
|
|
770
779
|
]),
|
|
771
780
|
_: 1
|
|
772
781
|
}, 8, ["loading"]),
|
|
773
|
-
|
|
782
|
+
ae("input", {
|
|
774
783
|
onChange: a,
|
|
775
784
|
ref_key: "input",
|
|
776
785
|
ref: o,
|
|
777
786
|
accept: n.accept,
|
|
778
787
|
style: { position: "absolute", width: "0px", height: "0px", opacity: "0" },
|
|
779
788
|
type: "file"
|
|
780
|
-
}, null, 40,
|
|
789
|
+
}, null, 40, on)
|
|
781
790
|
]);
|
|
782
791
|
};
|
|
783
792
|
}
|
|
784
|
-
},
|
|
793
|
+
}, Un = /* @__PURE__ */ we(ln, [["__scopeId", "data-v-5f1449ad"]]);
|
|
785
794
|
function Ae(n) {
|
|
786
795
|
let e = {};
|
|
787
796
|
return n.forEach((t) => {
|
|
@@ -791,16 +800,16 @@ function Ae(n) {
|
|
|
791
800
|
e[o] = ut(l);
|
|
792
801
|
else if (a == "date")
|
|
793
802
|
if (u.includes("range")) {
|
|
794
|
-
const [d,
|
|
803
|
+
const [d, k] = o;
|
|
795
804
|
let [x, C] = l || [];
|
|
796
|
-
x && u == "daterange" && (x =
|
|
805
|
+
x && u == "daterange" && (x = Se(x).format("YYYY-MM-DD 00:00:00"), C = Se(C).format("YYYY-MM-DD 23:59:59")), e[d] = x, e[k] = C;
|
|
797
806
|
} else
|
|
798
807
|
e[o] = l;
|
|
799
808
|
else
|
|
800
809
|
e[o] = l;
|
|
801
810
|
}), e;
|
|
802
811
|
}
|
|
803
|
-
const
|
|
812
|
+
const an = { key: 0 }, rn = { class: "btns" }, sn = { class: "left" }, cn = { class: "right" }, un = {
|
|
804
813
|
__name: "index",
|
|
805
814
|
props: {
|
|
806
815
|
form: {
|
|
@@ -810,8 +819,8 @@ const ln = { key: 0 }, an = { class: "btns" }, rn = { class: "left" }, sn = { cl
|
|
|
810
819
|
},
|
|
811
820
|
emits: ["confirm", "reset", "visibleChange"],
|
|
812
821
|
setup(n, { expose: e, emit: t }) {
|
|
813
|
-
const o = n, a = t, r = q(!0), l = q(null), { t: u } =
|
|
814
|
-
function
|
|
822
|
+
const o = n, a = t, r = q(!0), l = q(null), { t: u } = ve(), d = ne(() => r.value ? u("guan-bi") : u("zhan-kai"));
|
|
823
|
+
function k() {
|
|
815
824
|
a("confirm");
|
|
816
825
|
}
|
|
817
826
|
function x(h) {
|
|
@@ -829,17 +838,17 @@ const ln = { key: 0 }, an = { class: "btns" }, rn = { class: "left" }, sn = { cl
|
|
|
829
838
|
const g = ot(o.form.items);
|
|
830
839
|
function f() {
|
|
831
840
|
o.form.items.forEach((h) => {
|
|
832
|
-
const
|
|
833
|
-
|
|
841
|
+
const _ = g.find((w) => w.key == h.key);
|
|
842
|
+
_ && (h.value = _.value);
|
|
834
843
|
});
|
|
835
844
|
}
|
|
836
|
-
return e({ getPrm: b, reset: f }), (h,
|
|
837
|
-
const
|
|
838
|
-
return D(),
|
|
845
|
+
return e({ getPrm: b, reset: f }), (h, _) => {
|
|
846
|
+
const w = V("el-input"), S = V("el-date-picker"), z = V("el-form-item"), I = V("el-form"), W = V("el-link"), M = V("el-button");
|
|
847
|
+
return D(), de("div", {
|
|
839
848
|
class: "searchBar-container mgt10 mgb10",
|
|
840
|
-
onKeydown: $t(
|
|
849
|
+
onKeydown: $t(k, ["enter"])
|
|
841
850
|
}, [
|
|
842
|
-
|
|
851
|
+
ae("div", {
|
|
843
852
|
class: "searchBar",
|
|
844
853
|
style: It({ height: r.value ? "auto" : "42px" })
|
|
845
854
|
}, [
|
|
@@ -847,18 +856,18 @@ const ln = { key: 0 }, an = { class: "btns" }, rn = { class: "left" }, sn = { cl
|
|
|
847
856
|
inline: "",
|
|
848
857
|
model: n.form.data
|
|
849
858
|
}, {
|
|
850
|
-
default:
|
|
851
|
-
(D(!0),
|
|
859
|
+
default: U(() => [
|
|
860
|
+
(D(!0), de(De, null, Xe(n.form.items.filter((i) => !i.hidden), (i) => (D(), de(De, {
|
|
852
861
|
key: i.key
|
|
853
862
|
}, [
|
|
854
|
-
i.type == "br" ? (D(),
|
|
863
|
+
i.type == "br" ? (D(), de("br", an)) : (D(), Y(z, {
|
|
855
864
|
key: 1,
|
|
856
865
|
label: i.name
|
|
857
866
|
}, {
|
|
858
|
-
default:
|
|
867
|
+
default: U(() => {
|
|
859
868
|
var p, L;
|
|
860
869
|
return [
|
|
861
|
-
i.type === "input" ? (D(), Y(
|
|
870
|
+
i.type === "input" ? (D(), Y(w, {
|
|
862
871
|
key: 0,
|
|
863
872
|
modelValue: i.value,
|
|
864
873
|
"onUpdate:modelValue": (O) => i.value = O,
|
|
@@ -866,13 +875,13 @@ const ln = { key: 0 }, an = { class: "btns" }, rn = { class: "left" }, sn = { cl
|
|
|
866
875
|
placeholder: h.$t("qing-shu-ru"),
|
|
867
876
|
clearable: ""
|
|
868
877
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "class", "placeholder"])) : i.type === "custom" ? (D(), Y(et(i.render), { key: 1 })) : fe("", !0),
|
|
869
|
-
i.type === "select" ? (D(), Y(
|
|
878
|
+
i.type === "select" ? (D(), Y(en, he({
|
|
870
879
|
key: 2,
|
|
871
880
|
class: ((L = i.option) == null ? void 0 : L.class) || "w150",
|
|
872
881
|
modelValue: i.value,
|
|
873
882
|
"onUpdate:modelValue": (O) => i.value = O
|
|
874
883
|
}, { ref_for: !0 }, i.option, {
|
|
875
|
-
onChange:
|
|
884
|
+
onChange: k,
|
|
876
885
|
onClear: (O) => x(i)
|
|
877
886
|
}), null, 16, ["class", "modelValue", "onUpdate:modelValue", "onClear"])) : fe("", !0),
|
|
878
887
|
i.type === "date" ? (D(), Y(S, {
|
|
@@ -897,32 +906,32 @@ const ln = { key: 0 }, an = { class: "btns" }, rn = { class: "left" }, sn = { cl
|
|
|
897
906
|
_: 1
|
|
898
907
|
}, 8, ["model"])
|
|
899
908
|
], 4),
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
909
|
+
ae("div", rn, [
|
|
910
|
+
ae("div", sn, [
|
|
911
|
+
re(h.$slots, "table-header-left", {}, void 0, !0)
|
|
903
912
|
]),
|
|
904
|
-
|
|
913
|
+
ae("div", cn, [
|
|
905
914
|
P(W, {
|
|
906
915
|
underline: "never",
|
|
907
916
|
class: "mgr10",
|
|
908
|
-
onClick:
|
|
917
|
+
onClick: _[0] || (_[0] = () => {
|
|
909
918
|
a("visibleChange", !r.value), r.value = !r.value;
|
|
910
919
|
})
|
|
911
920
|
}, {
|
|
912
|
-
default:
|
|
921
|
+
default: U(() => [
|
|
913
922
|
P(dt, {
|
|
914
923
|
name: r.value ? "ArrowUp" : "ArrowDown"
|
|
915
924
|
}, null, 8, ["name"]),
|
|
916
|
-
|
|
925
|
+
se(" " + oe(d.value), 1)
|
|
917
926
|
]),
|
|
918
927
|
_: 1
|
|
919
928
|
}),
|
|
920
929
|
P(M, {
|
|
921
930
|
type: "primary",
|
|
922
|
-
onClick:
|
|
931
|
+
onClick: k
|
|
923
932
|
}, {
|
|
924
|
-
default:
|
|
925
|
-
|
|
933
|
+
default: U(() => [
|
|
934
|
+
se(oe(h.$t("shai-xuan")), 1)
|
|
926
935
|
]),
|
|
927
936
|
_: 1
|
|
928
937
|
}),
|
|
@@ -930,18 +939,18 @@ const ln = { key: 0 }, an = { class: "btns" }, rn = { class: "left" }, sn = { cl
|
|
|
930
939
|
type: "primary",
|
|
931
940
|
onClick: C
|
|
932
941
|
}, {
|
|
933
|
-
default:
|
|
934
|
-
|
|
942
|
+
default: U(() => [
|
|
943
|
+
se(oe(h.$t("chong-zhi")), 1)
|
|
935
944
|
]),
|
|
936
945
|
_: 1
|
|
937
946
|
}),
|
|
938
|
-
|
|
947
|
+
re(h.$slots, "btn", {}, void 0, !0)
|
|
939
948
|
])
|
|
940
949
|
])
|
|
941
950
|
], 32);
|
|
942
951
|
};
|
|
943
952
|
}
|
|
944
|
-
},
|
|
953
|
+
}, dn = /* @__PURE__ */ we(un, [["__scopeId", "data-v-32ac9990"]]), ft = {
|
|
945
954
|
// 分页参数名
|
|
946
955
|
pageNoKey: "pageNo",
|
|
947
956
|
// 页码参数名
|
|
@@ -972,7 +981,7 @@ const ln = { key: 0 }, an = { class: "btns" }, rn = { class: "left" }, sn = { cl
|
|
|
972
981
|
// 是否启用单元格选区复制功能
|
|
973
982
|
};
|
|
974
983
|
let xe = { ...ft };
|
|
975
|
-
function
|
|
984
|
+
function Rn(n) {
|
|
976
985
|
xe = {
|
|
977
986
|
...xe,
|
|
978
987
|
...n,
|
|
@@ -982,13 +991,13 @@ function Un(n) {
|
|
|
982
991
|
}
|
|
983
992
|
};
|
|
984
993
|
}
|
|
985
|
-
function
|
|
994
|
+
function fn() {
|
|
986
995
|
return xe;
|
|
987
996
|
}
|
|
988
|
-
function
|
|
997
|
+
function jn() {
|
|
989
998
|
xe = { ...ft };
|
|
990
999
|
}
|
|
991
|
-
const
|
|
1000
|
+
const hn = { class: "center" }, gn = {
|
|
992
1001
|
__name: "index",
|
|
993
1002
|
props: {
|
|
994
1003
|
// 表格id 本地存储列设置时使用,不传则使用路由路径自动生成
|
|
@@ -1025,24 +1034,24 @@ const fn = { class: "center" }, hn = {
|
|
|
1025
1034
|
}
|
|
1026
1035
|
},
|
|
1027
1036
|
setup(n, { expose: e }) {
|
|
1028
|
-
const { t, locale: o } =
|
|
1037
|
+
const { t, locale: o } = ve(), a = zt(), r = fn(), l = n, u = q(!1), d = q([]);
|
|
1029
1038
|
l.searchForm.showSearch === void 0 && (l.searchForm.showSearch = r.showSearch), l.searchForm.showPage === void 0 && (l.searchForm.showPage = r.showPage), l.searchForm.showShadow === void 0 && (l.searchForm.showShadow = r.showShadow), l.searchForm.showCheckBox === void 0 && (l.searchForm.showCheckBox = r.showCheckBox), l.searchForm.enableCellCopy === void 0 && (l.searchForm.enableCellCopy = r.enableCellCopy), l.searchForm.selections || (l.searchForm.selections = []);
|
|
1030
|
-
const
|
|
1039
|
+
const k = ne(() => {
|
|
1031
1040
|
const c = a.path.replace(/\//g, "-").replace(/^-/, "") || "default-table";
|
|
1032
1041
|
return l.id ? `listPageId-${c}-${l.id}` : `listPageId-${c}`;
|
|
1033
1042
|
}), x = ot(l.searchForm.items), C = l.searchForm.pageNoKey || r.pageNoKey, v = l.searchForm.pageSizeKey || r.pageSizeKey, b = ke({
|
|
1034
1043
|
[C]: 1,
|
|
1035
1044
|
[v]: l.searchForm.defaultPageSize || r.defaultPageSize,
|
|
1036
1045
|
total: 0
|
|
1037
|
-
}), g = q(null), f = q(null), h = q(450),
|
|
1038
|
-
|
|
1046
|
+
}), g = q(null), f = q(null), h = q(450), _ = nt(() => {
|
|
1047
|
+
_e(() => {
|
|
1039
1048
|
if (!f.value)
|
|
1040
1049
|
return;
|
|
1041
|
-
const s = f.value.getBoundingClientRect(), y = window.innerHeight, F = s.top,
|
|
1050
|
+
const s = f.value.getBoundingClientRect(), y = window.innerHeight, F = s.top, R = 100, H = y - F - R, T = 200;
|
|
1042
1051
|
h.value = Math.max(H, T);
|
|
1043
1052
|
});
|
|
1044
|
-
}, 100),
|
|
1045
|
-
|
|
1053
|
+
}, 100), w = () => {
|
|
1054
|
+
_();
|
|
1046
1055
|
}, S = () => {
|
|
1047
1056
|
if (!l.searchForm.enableCellCopy)
|
|
1048
1057
|
return !1;
|
|
@@ -1050,10 +1059,10 @@ const fn = { class: "center" }, hn = {
|
|
|
1050
1059
|
if (!c || !c.$el)
|
|
1051
1060
|
return !1;
|
|
1052
1061
|
const s = c.$el;
|
|
1053
|
-
return s.classList.add("cell-copy-enabled"), s.setAttribute("tabindex", "-1"), s.removeEventListener("mousedown",
|
|
1062
|
+
return s.classList.add("cell-copy-enabled"), s.setAttribute("tabindex", "-1"), s.removeEventListener("mousedown", le), s.removeEventListener("mousemove", me), s.removeEventListener("mouseup", be), s.removeEventListener("keydown", Ie), s.addEventListener("mousedown", le), s.addEventListener("mousemove", me), s.addEventListener("mouseup", be), s.addEventListener("keydown", Ie), !0;
|
|
1054
1063
|
};
|
|
1055
1064
|
Qe(() => {
|
|
1056
|
-
|
|
1065
|
+
_(), window.addEventListener("resize", w), l.searchForm.enableCellCopy && (document.addEventListener("mouseup", Be), document.addEventListener("mousedown", Ye), setTimeout(() => {
|
|
1057
1066
|
S();
|
|
1058
1067
|
}, 500));
|
|
1059
1068
|
}), Ft(() => {
|
|
@@ -1061,16 +1070,16 @@ const fn = { class: "center" }, hn = {
|
|
|
1061
1070
|
S();
|
|
1062
1071
|
}, 500);
|
|
1063
1072
|
}), Lt(() => {
|
|
1064
|
-
if (window.removeEventListener("resize",
|
|
1073
|
+
if (window.removeEventListener("resize", w), l.searchForm.enableCellCopy) {
|
|
1065
1074
|
document.removeEventListener("mouseup", Be), document.removeEventListener("mousedown", Ye);
|
|
1066
1075
|
const c = g.value;
|
|
1067
1076
|
if (c && c.$el) {
|
|
1068
1077
|
const s = c.$el;
|
|
1069
|
-
s.removeEventListener("mousedown",
|
|
1078
|
+
s.removeEventListener("mousedown", le), s.removeEventListener("mousemove", me), s.removeEventListener("mouseup", be), s.removeEventListener("keydown", Ie);
|
|
1070
1079
|
}
|
|
1071
1080
|
}
|
|
1072
1081
|
});
|
|
1073
|
-
const z = ne(() =>
|
|
1082
|
+
const z = ne(() => ie.value.height || h.value);
|
|
1074
1083
|
let I;
|
|
1075
1084
|
async function W(c) {
|
|
1076
1085
|
const { dataFormat: s } = l.tableConfig;
|
|
@@ -1079,10 +1088,10 @@ const fn = { class: "center" }, hn = {
|
|
|
1079
1088
|
u.value = !1, l.searchForm.selections = [];
|
|
1080
1089
|
});
|
|
1081
1090
|
if (y == 200) {
|
|
1082
|
-
let
|
|
1091
|
+
let R = [];
|
|
1083
1092
|
for (const T of r.responseDataKeys.rows)
|
|
1084
1093
|
if (F[T]) {
|
|
1085
|
-
|
|
1094
|
+
R = F[T];
|
|
1086
1095
|
break;
|
|
1087
1096
|
}
|
|
1088
1097
|
let H = 0;
|
|
@@ -1091,7 +1100,7 @@ const fn = { class: "center" }, hn = {
|
|
|
1091
1100
|
H = F[T];
|
|
1092
1101
|
break;
|
|
1093
1102
|
}
|
|
1094
|
-
d.value = s ? s(
|
|
1103
|
+
d.value = s ? s(R) : R, b.total = H, I = F.nextSearchAfter, l.searchForm.enableCellCopy && _e(() => {
|
|
1095
1104
|
setTimeout(() => {
|
|
1096
1105
|
S();
|
|
1097
1106
|
}, 100);
|
|
@@ -1122,7 +1131,7 @@ const fn = { class: "center" }, hn = {
|
|
|
1122
1131
|
drag: !0,
|
|
1123
1132
|
resizable: !0,
|
|
1124
1133
|
maxFixedSize: 0
|
|
1125
|
-
}),
|
|
1134
|
+
}), ie = ne(() => {
|
|
1126
1135
|
const { customConfig: c, columnConfig: s, ...y } = l.tableConfig;
|
|
1127
1136
|
return {
|
|
1128
1137
|
headerAlign: "left",
|
|
@@ -1147,7 +1156,7 @@ const fn = { class: "center" }, hn = {
|
|
|
1147
1156
|
// 结束单元格
|
|
1148
1157
|
selectedCells: []
|
|
1149
1158
|
// 选中的单元格列表 [{ rowIndex, colIndex }]
|
|
1150
|
-
}),
|
|
1159
|
+
}), ge = (c) => {
|
|
1151
1160
|
const s = c.closest(".vxe-body--column");
|
|
1152
1161
|
if (!s || s.classList.contains("col--checkbox") || s.classList.contains("col--seq"))
|
|
1153
1162
|
return null;
|
|
@@ -1157,53 +1166,53 @@ const fn = { class: "center" }, hn = {
|
|
|
1157
1166
|
const F = g.value;
|
|
1158
1167
|
if (!F)
|
|
1159
1168
|
return null;
|
|
1160
|
-
let
|
|
1169
|
+
let R = -1;
|
|
1161
1170
|
const H = y.getAttribute("data-rowid");
|
|
1162
1171
|
if (H != null)
|
|
1163
|
-
|
|
1172
|
+
R = parseInt(H, 10);
|
|
1164
1173
|
else {
|
|
1165
1174
|
const E = y.parentElement;
|
|
1166
|
-
|
|
1175
|
+
R = Array.from(E.querySelectorAll(".vxe-body--row")).indexOf(y);
|
|
1167
1176
|
}
|
|
1168
|
-
if (
|
|
1177
|
+
if (R < 0)
|
|
1169
1178
|
return null;
|
|
1170
1179
|
let T = -1;
|
|
1171
1180
|
const te = s.getAttribute("data-colid");
|
|
1172
1181
|
if (te && (T = F.getColumns().findIndex(($) => $.id === te)), T < 0) {
|
|
1173
|
-
const $ = Array.from(y.querySelectorAll(".vxe-body--column")).indexOf(s), B = !!s.closest(".vxe-table--fixed-left-wrapper"), N = !!s.closest(".vxe-table--fixed-right-wrapper"),
|
|
1182
|
+
const $ = Array.from(y.querySelectorAll(".vxe-body--column")).indexOf(s), B = !!s.closest(".vxe-table--fixed-left-wrapper"), N = !!s.closest(".vxe-table--fixed-right-wrapper"), j = F.getColumns();
|
|
1174
1183
|
if (B) {
|
|
1175
|
-
const Z =
|
|
1176
|
-
$ < Z.length && (T =
|
|
1184
|
+
const Z = j.filter((K) => K.fixed === "left");
|
|
1185
|
+
$ < Z.length && (T = j.indexOf(Z[$]));
|
|
1177
1186
|
} else if (N) {
|
|
1178
|
-
const Z =
|
|
1179
|
-
$ < Z.length && (T =
|
|
1187
|
+
const Z = j.filter((K) => K.fixed === "right");
|
|
1188
|
+
$ < Z.length && (T = j.indexOf(Z[$]));
|
|
1180
1189
|
} else {
|
|
1181
1190
|
const Z = l.searchForm.showCheckBox ? 1 : 0;
|
|
1182
|
-
T =
|
|
1191
|
+
T = j.filter((J) => J.fixed === "left").length + $ - Z;
|
|
1183
1192
|
}
|
|
1184
1193
|
}
|
|
1185
|
-
return T < 0 ? null : { rowIndex:
|
|
1186
|
-
},
|
|
1187
|
-
const s =
|
|
1194
|
+
return T < 0 ? null : { rowIndex: R, colIndex: T, cell: s };
|
|
1195
|
+
}, le = (c) => {
|
|
1196
|
+
const s = ge(c.target);
|
|
1188
1197
|
if (!s) {
|
|
1189
|
-
|
|
1198
|
+
$e();
|
|
1190
1199
|
return;
|
|
1191
1200
|
}
|
|
1192
1201
|
m.isSelecting = !0, m.startCell = {
|
|
1193
1202
|
rowIndex: s.rowIndex,
|
|
1194
1203
|
colIndex: s.colIndex
|
|
1195
1204
|
}, m.endCell = { ...m.startCell }, je(), qe();
|
|
1196
|
-
},
|
|
1205
|
+
}, me = (c) => {
|
|
1197
1206
|
if (!m.isSelecting)
|
|
1198
1207
|
return;
|
|
1199
|
-
const s =
|
|
1208
|
+
const s = ge(c.target);
|
|
1200
1209
|
s && (m.endCell = {
|
|
1201
1210
|
rowIndex: s.rowIndex,
|
|
1202
1211
|
colIndex: s.colIndex
|
|
1203
1212
|
}, je(), qe());
|
|
1204
1213
|
}, be = () => {
|
|
1205
1214
|
m.isSelecting = !1;
|
|
1206
|
-
},
|
|
1215
|
+
}, $e = () => {
|
|
1207
1216
|
m.selectedCells = [], m.startCell = null, m.endCell = null;
|
|
1208
1217
|
const c = g.value;
|
|
1209
1218
|
if (!c)
|
|
@@ -1224,16 +1233,16 @@ const fn = { class: "center" }, hn = {
|
|
|
1224
1233
|
m.selectedCells = [];
|
|
1225
1234
|
return;
|
|
1226
1235
|
}
|
|
1227
|
-
const c = m.startCell.rowIndex, s = m.endCell.rowIndex, y = m.startCell.colIndex, F = m.endCell.colIndex,
|
|
1236
|
+
const c = m.startCell.rowIndex, s = m.endCell.rowIndex, y = m.startCell.colIndex, F = m.endCell.colIndex, R = Math.min(c, s), H = Math.max(c, s), T = Math.min(y, F), te = Math.max(y, F);
|
|
1228
1237
|
m.selectedCells = [];
|
|
1229
|
-
for (let E =
|
|
1238
|
+
for (let E = R; E <= H; E++)
|
|
1230
1239
|
for (let $ = T; $ <= te; $++)
|
|
1231
1240
|
m.selectedCells.push({
|
|
1232
1241
|
rowIndex: E,
|
|
1233
1242
|
colIndex: $
|
|
1234
1243
|
});
|
|
1235
1244
|
}, qe = () => {
|
|
1236
|
-
|
|
1245
|
+
_e(() => {
|
|
1237
1246
|
const c = g.value;
|
|
1238
1247
|
if (!c)
|
|
1239
1248
|
return;
|
|
@@ -1250,31 +1259,31 @@ const fn = { class: "center" }, hn = {
|
|
|
1250
1259
|
);
|
|
1251
1260
|
}), m.selectedCells.length === 0)
|
|
1252
1261
|
return;
|
|
1253
|
-
const y = c.getColumns(), F = m.selectedCells.map((B) => B.rowIndex),
|
|
1262
|
+
const y = c.getColumns(), F = m.selectedCells.map((B) => B.rowIndex), R = m.selectedCells.map((B) => B.colIndex), H = Math.min(...F), T = Math.max(...F), te = Math.min(...R), E = Math.max(...R), $ = [
|
|
1254
1263
|
s.querySelector(".vxe-table--body-wrapper tbody"),
|
|
1255
1264
|
s.querySelector(".vxe-table--fixed-left-wrapper tbody"),
|
|
1256
1265
|
s.querySelector(".vxe-table--fixed-right-wrapper tbody")
|
|
1257
1266
|
].filter(Boolean);
|
|
1258
1267
|
m.selectedCells.forEach(({ rowIndex: B, colIndex: N }) => {
|
|
1259
|
-
const
|
|
1260
|
-
if (!
|
|
1268
|
+
const j = y[N];
|
|
1269
|
+
if (!j)
|
|
1261
1270
|
return;
|
|
1262
|
-
const Z =
|
|
1271
|
+
const Z = j.fixed === "left", K = j.fixed === "right";
|
|
1263
1272
|
for (const J of $) {
|
|
1264
1273
|
const ye = J.querySelectorAll(".vxe-body--row")[B];
|
|
1265
1274
|
if (!ye)
|
|
1266
1275
|
continue;
|
|
1267
|
-
const
|
|
1276
|
+
const ce = Array.from(ye.querySelectorAll(".vxe-body--column"));
|
|
1268
1277
|
let A = null;
|
|
1269
1278
|
if (Z && J.closest(".vxe-table--fixed-left-wrapper")) {
|
|
1270
|
-
const Q = y.filter((X) => X.fixed === "left").indexOf(
|
|
1271
|
-
A =
|
|
1279
|
+
const Q = y.filter((X) => X.fixed === "left").indexOf(j);
|
|
1280
|
+
A = ce[Q];
|
|
1272
1281
|
} else if (K && J.closest(".vxe-table--fixed-right-wrapper")) {
|
|
1273
|
-
const Q = y.filter((X) => X.fixed === "right").indexOf(
|
|
1274
|
-
A =
|
|
1282
|
+
const Q = y.filter((X) => X.fixed === "right").indexOf(j);
|
|
1283
|
+
A = ce[Q];
|
|
1275
1284
|
} else if (!Z && !K && J.closest(".vxe-table--body-wrapper")) {
|
|
1276
|
-
const
|
|
1277
|
-
A =
|
|
1285
|
+
const ue = l.searchForm.showCheckBox ? 1 : 0, Q = y.filter((Fe) => Fe.fixed === "left").length, X = N - Q;
|
|
1286
|
+
A = ce[X + ue];
|
|
1278
1287
|
}
|
|
1279
1288
|
if (A && !A.classList.contains("col--checkbox") && !A.classList.contains("col--seq")) {
|
|
1280
1289
|
A.classList.add("cell-selected"), B === H && A.classList.add("cell-border-top"), B === T && A.classList.add("cell-border-bottom"), N === te && A.classList.add("cell-border-left"), N === E && A.classList.add("cell-border-right");
|
|
@@ -1291,7 +1300,7 @@ const fn = { class: "center" }, hn = {
|
|
|
1291
1300
|
return;
|
|
1292
1301
|
const s = c.$el, y = c.getColumns(), F = [...new Set(m.selectedCells.map((E) => E.rowIndex))].sort(
|
|
1293
1302
|
(E, $) => E - $
|
|
1294
|
-
),
|
|
1303
|
+
), R = [...new Set(m.selectedCells.map((E) => E.colIndex))].sort(
|
|
1295
1304
|
(E, $) => E - $
|
|
1296
1305
|
), H = [
|
|
1297
1306
|
s.querySelector(".vxe-table--body-wrapper tbody"),
|
|
@@ -1300,29 +1309,29 @@ const fn = { class: "center" }, hn = {
|
|
|
1300
1309
|
].filter(Boolean), T = [];
|
|
1301
1310
|
F.forEach((E) => {
|
|
1302
1311
|
const $ = [];
|
|
1303
|
-
|
|
1312
|
+
R.forEach((B) => {
|
|
1304
1313
|
const N = y[B];
|
|
1305
1314
|
if (!N) {
|
|
1306
1315
|
$.push("");
|
|
1307
1316
|
return;
|
|
1308
1317
|
}
|
|
1309
|
-
const
|
|
1318
|
+
const j = N.fixed === "left", Z = N.fixed === "right";
|
|
1310
1319
|
let K = "";
|
|
1311
1320
|
for (const J of H) {
|
|
1312
1321
|
const ye = J.querySelectorAll(".vxe-body--row")[E];
|
|
1313
1322
|
if (!ye)
|
|
1314
1323
|
continue;
|
|
1315
|
-
const
|
|
1324
|
+
const ce = Array.from(ye.querySelectorAll(".vxe-body--column"));
|
|
1316
1325
|
let A = null;
|
|
1317
|
-
if (
|
|
1326
|
+
if (j && J.closest(".vxe-table--fixed-left-wrapper")) {
|
|
1318
1327
|
const Q = y.filter((X) => X.fixed === "left").indexOf(N);
|
|
1319
|
-
A =
|
|
1328
|
+
A = ce[Q];
|
|
1320
1329
|
} else if (Z && J.closest(".vxe-table--fixed-right-wrapper")) {
|
|
1321
1330
|
const Q = y.filter((X) => X.fixed === "right").indexOf(N);
|
|
1322
|
-
A =
|
|
1323
|
-
} else if (!
|
|
1324
|
-
const
|
|
1325
|
-
A =
|
|
1331
|
+
A = ce[Q];
|
|
1332
|
+
} else if (!j && !Z && J.closest(".vxe-table--body-wrapper")) {
|
|
1333
|
+
const ue = l.searchForm.showCheckBox ? 1 : 0, Q = y.filter((Fe) => Fe.fixed === "left").length, X = B - Q;
|
|
1334
|
+
A = ce[X + ue];
|
|
1326
1335
|
}
|
|
1327
1336
|
if (A && !A.classList.contains("col--checkbox") && !A.classList.contains("col--seq")) {
|
|
1328
1337
|
K = A.innerText || A.textContent || "", K = K.trim(), K = K.replace(/\n/g, " ").replace(/\s+/g, " ");
|
|
@@ -1339,15 +1348,15 @@ const fn = { class: "center" }, hn = {
|
|
|
1339
1348
|
} catch (E) {
|
|
1340
1349
|
console.error("复制失败:", E);
|
|
1341
1350
|
}
|
|
1342
|
-
},
|
|
1343
|
-
l.searchForm.enableCellCopy && ((c.ctrlKey || c.metaKey) && c.key === "c" ? m.selectedCells.length > 0 && (c.preventDefault(), c.stopPropagation(), gt()) : c.key === "Escape" &&
|
|
1351
|
+
}, Ie = (c) => {
|
|
1352
|
+
l.searchForm.enableCellCopy && ((c.ctrlKey || c.metaKey) && c.key === "c" ? m.selectedCells.length > 0 && (c.preventDefault(), c.stopPropagation(), gt()) : c.key === "Escape" && $e());
|
|
1344
1353
|
}, Be = () => {
|
|
1345
1354
|
m.isSelecting = !1;
|
|
1346
1355
|
}, Ye = (c) => {
|
|
1347
1356
|
const s = g.value;
|
|
1348
1357
|
if (!s || !s.$el)
|
|
1349
1358
|
return;
|
|
1350
|
-
s.$el.contains(c.target) ||
|
|
1359
|
+
s.$el.contains(c.target) || $e();
|
|
1351
1360
|
}, mt = (c) => {
|
|
1352
1361
|
b[C] = c, M();
|
|
1353
1362
|
}, pt = (c) => {
|
|
@@ -1365,26 +1374,26 @@ const fn = { class: "center" }, hn = {
|
|
|
1365
1374
|
l.searchForm.selections = y;
|
|
1366
1375
|
}
|
|
1367
1376
|
};
|
|
1368
|
-
return e({ tableRef: g, getList: M, getPrm: p, clearSort: L, calculateTableHeight:
|
|
1377
|
+
return e({ tableRef: g, getList: M, getPrm: p, clearSort: L, calculateTableHeight: _ }), (c, s) => {
|
|
1369
1378
|
var E;
|
|
1370
|
-
const y = V("el-button"), F = V("el-checkbox"),
|
|
1371
|
-
return D(),
|
|
1379
|
+
const y = V("el-button"), F = V("el-checkbox"), R = V("el-text"), H = V("vxe-column"), T = V("VxeTable"), te = V("el-pagination");
|
|
1380
|
+
return D(), de("div", {
|
|
1372
1381
|
class: Oe({ box: n.searchForm.showShadow })
|
|
1373
1382
|
}, [
|
|
1374
|
-
n.searchForm.showSearch ? (D(), Y(
|
|
1383
|
+
n.searchForm.showSearch ? (D(), Y(dn, {
|
|
1375
1384
|
key: 0,
|
|
1376
1385
|
form: n.searchForm,
|
|
1377
1386
|
onReset: i,
|
|
1378
1387
|
onConfirm: s[1] || (s[1] = ($) => M()),
|
|
1379
|
-
onVisibleChange: G(
|
|
1388
|
+
onVisibleChange: G(_)
|
|
1380
1389
|
}, {
|
|
1381
|
-
btn:
|
|
1382
|
-
|
|
1390
|
+
btn: U(() => [
|
|
1391
|
+
re(c.$slots, "search-bar-btn", {}, void 0, !0),
|
|
1383
1392
|
P(y, {
|
|
1384
1393
|
round: "",
|
|
1385
1394
|
onClick: s[0] || (s[0] = ($) => g.value.openCustom())
|
|
1386
1395
|
}, {
|
|
1387
|
-
default:
|
|
1396
|
+
default: U(() => [
|
|
1388
1397
|
P(dt, { name: "Tools" })
|
|
1389
1398
|
]),
|
|
1390
1399
|
_: 1
|
|
@@ -1392,25 +1401,25 @@ const fn = { class: "center" }, hn = {
|
|
|
1392
1401
|
]),
|
|
1393
1402
|
_: 3
|
|
1394
1403
|
}, 8, ["form", "onVisibleChange"])) : fe("", !0),
|
|
1395
|
-
|
|
1396
|
-
|
|
1404
|
+
re(c.$slots, "table-header-left", {}, void 0, !0),
|
|
1405
|
+
ae("div", {
|
|
1397
1406
|
ref_key: "tableContentRef",
|
|
1398
1407
|
ref: f
|
|
1399
1408
|
}, [
|
|
1400
1409
|
P(T, he({
|
|
1401
|
-
id:
|
|
1410
|
+
id: k.value,
|
|
1402
1411
|
ref_key: "tableRef",
|
|
1403
1412
|
ref: g,
|
|
1404
1413
|
loading: n.loading || u.value,
|
|
1405
1414
|
data: n.api ? d.value : n.data,
|
|
1406
1415
|
border: ""
|
|
1407
|
-
},
|
|
1416
|
+
}, ie.value, {
|
|
1408
1417
|
height: z.value,
|
|
1409
1418
|
onCheckboxChange: Ke,
|
|
1410
1419
|
onCheckboxAll: Ke,
|
|
1411
|
-
onSortChange: (E =
|
|
1420
|
+
onSortChange: (E = ie.value["sort-config"]) == null ? void 0 : E.sortChange
|
|
1412
1421
|
}), {
|
|
1413
|
-
default:
|
|
1422
|
+
default: U(() => [
|
|
1414
1423
|
n.searchForm.showCheckBox == null || n.searchForm.showCheckBox ? (D(), Y(H, {
|
|
1415
1424
|
key: 0,
|
|
1416
1425
|
type: "checkbox",
|
|
@@ -1418,27 +1427,27 @@ const fn = { class: "center" }, hn = {
|
|
|
1418
1427
|
title: c.$t("xu-hao"),
|
|
1419
1428
|
fixed: "left"
|
|
1420
1429
|
}, {
|
|
1421
|
-
checkbox:
|
|
1422
|
-
|
|
1430
|
+
checkbox: U(({ rowIndex: $, row: B, checked: N, disabled: j, indeterminate: Z }) => [
|
|
1431
|
+
ae("div", hn, [
|
|
1423
1432
|
N ? (D(), Y(F, {
|
|
1424
1433
|
key: 0,
|
|
1425
1434
|
checked: !0,
|
|
1426
|
-
disabled:
|
|
1435
|
+
disabled: j,
|
|
1427
1436
|
size: "default",
|
|
1428
|
-
onClick: ze((K) => !
|
|
1437
|
+
onClick: ze((K) => !j && He(B), ["stop"])
|
|
1429
1438
|
}, null, 8, ["disabled", "onClick"])) : (D(), Y(F, {
|
|
1430
1439
|
key: 1,
|
|
1431
|
-
disabled:
|
|
1440
|
+
disabled: j,
|
|
1432
1441
|
checked: !1,
|
|
1433
1442
|
size: "default",
|
|
1434
|
-
onClick: ze((K) => !
|
|
1443
|
+
onClick: ze((K) => !j && He(B), ["stop"])
|
|
1435
1444
|
}, null, 8, ["disabled", "onClick"])),
|
|
1436
|
-
P(
|
|
1445
|
+
P(R, {
|
|
1437
1446
|
type: "info",
|
|
1438
1447
|
class: "mgl5"
|
|
1439
1448
|
}, {
|
|
1440
|
-
default:
|
|
1441
|
-
|
|
1449
|
+
default: U(() => [
|
|
1450
|
+
se(oe($ + 1), 1)
|
|
1442
1451
|
]),
|
|
1443
1452
|
_: 2
|
|
1444
1453
|
}, 1024)
|
|
@@ -1446,7 +1455,7 @@ const fn = { class: "center" }, hn = {
|
|
|
1446
1455
|
]),
|
|
1447
1456
|
_: 1
|
|
1448
1457
|
}, 8, ["width", "title"])) : fe("", !0),
|
|
1449
|
-
|
|
1458
|
+
re(c.$slots, "default", {}, void 0, !0)
|
|
1450
1459
|
]),
|
|
1451
1460
|
_: 3
|
|
1452
1461
|
}, 16, ["id", "loading", "data", "height", "onSortChange"])
|
|
@@ -1467,7 +1476,7 @@ const fn = { class: "center" }, hn = {
|
|
|
1467
1476
|
], 2);
|
|
1468
1477
|
};
|
|
1469
1478
|
}
|
|
1470
|
-
},
|
|
1479
|
+
}, qn = /* @__PURE__ */ we(gn, [["__scopeId", "data-v-de0d59d6"]]), Bn = {
|
|
1471
1480
|
__name: "index",
|
|
1472
1481
|
props: {
|
|
1473
1482
|
sheetsConfig: {
|
|
@@ -1490,15 +1499,15 @@ const fn = { class: "center" }, hn = {
|
|
|
1490
1499
|
type: "primary",
|
|
1491
1500
|
underline: "never"
|
|
1492
1501
|
}, o.$attrs, { onClick: t }), {
|
|
1493
|
-
default:
|
|
1494
|
-
|
|
1502
|
+
default: U(() => [
|
|
1503
|
+
se(oe(o.$t("xia-zai-dao-ru-mo-ban")), 1)
|
|
1495
1504
|
]),
|
|
1496
1505
|
_: 1
|
|
1497
1506
|
}, 16);
|
|
1498
1507
|
};
|
|
1499
1508
|
}
|
|
1500
1509
|
};
|
|
1501
|
-
function
|
|
1510
|
+
function Yn(n, e = {}) {
|
|
1502
1511
|
const t = Re(), o = {
|
|
1503
1512
|
inForm: !0,
|
|
1504
1513
|
required: !0,
|
|
@@ -1508,7 +1517,7 @@ function Bn(n, e = {}) {
|
|
|
1508
1517
|
password: /(?=.*\d)(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,12}/,
|
|
1509
1518
|
email: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
|
|
1510
1519
|
}[n], { inForm: r, value: l, required: u, msg: d = t("validate.invalidInput") } = o;
|
|
1511
|
-
return r ? function(
|
|
1520
|
+
return r ? function(k, x, C) {
|
|
1512
1521
|
if (u) {
|
|
1513
1522
|
a.test(x) ? C() : C(new Error(d));
|
|
1514
1523
|
return;
|
|
@@ -1516,7 +1525,7 @@ function Bn(n, e = {}) {
|
|
|
1516
1525
|
x && !a.test(x) ? C(new Error(d)) : C();
|
|
1517
1526
|
} : a.test(l);
|
|
1518
1527
|
}
|
|
1519
|
-
class
|
|
1528
|
+
class Kn {
|
|
1520
1529
|
constructor(e = {}) {
|
|
1521
1530
|
this.config = {
|
|
1522
1531
|
clientCode: e.clientCode || "one-portal",
|
|
@@ -1722,28 +1731,28 @@ class Yn {
|
|
|
1722
1731
|
return this.config[e];
|
|
1723
1732
|
}
|
|
1724
1733
|
}
|
|
1725
|
-
function
|
|
1734
|
+
function Hn(n, e = {}) {
|
|
1726
1735
|
const o = Object.assign({
|
|
1727
1736
|
manual: !1,
|
|
1728
1737
|
// 手动执行
|
|
1729
1738
|
log: !1,
|
|
1730
1739
|
params: null,
|
|
1731
1740
|
format: null
|
|
1732
|
-
}, e), { manual: a, log: r, params: l = {}, cb: u, format: d } = o,
|
|
1741
|
+
}, e), { manual: a, log: r, params: l = {}, cb: u, format: d } = o, k = q([]), x = q(!1), C = (v) => {
|
|
1733
1742
|
const b = v || l;
|
|
1734
1743
|
x.value = !0, n(b).then((g) => {
|
|
1735
|
-
const { code: f, data: h, msg:
|
|
1744
|
+
const { code: f, data: h, msg: _ } = g;
|
|
1736
1745
|
if (u) {
|
|
1737
|
-
const { records:
|
|
1738
|
-
|
|
1746
|
+
const { records: w, rows: S } = h || {}, z = w || S ? w || S : h;
|
|
1747
|
+
k.value = Te(z, d), u(g);
|
|
1739
1748
|
}
|
|
1740
1749
|
if (h) {
|
|
1741
1750
|
if (h.records != null || h.rows != null) {
|
|
1742
|
-
const { records:
|
|
1743
|
-
b && b.total != null && (l.total = parseInt(z)),
|
|
1751
|
+
const { records: w, rows: S, total: z = 0 } = h || {};
|
|
1752
|
+
b && b.total != null && (l.total = parseInt(z)), k.value = Te(w || S || [], d);
|
|
1744
1753
|
} else
|
|
1745
|
-
|
|
1746
|
-
r && console.log("useRequest-res",
|
|
1754
|
+
k.value = Te(h, d);
|
|
1755
|
+
r && console.log("useRequest-res", k.value);
|
|
1747
1756
|
}
|
|
1748
1757
|
}).catch((g) => {
|
|
1749
1758
|
u && (console.log("useRequestErr", g), u({ code: 500 }));
|
|
@@ -1751,16 +1760,16 @@ function Kn(n, e = {}) {
|
|
|
1751
1760
|
x.value = !1;
|
|
1752
1761
|
});
|
|
1753
1762
|
};
|
|
1754
|
-
return a || C(), [x,
|
|
1763
|
+
return a || C(), [x, k, C];
|
|
1755
1764
|
}
|
|
1756
|
-
function
|
|
1765
|
+
function Nn(n) {
|
|
1757
1766
|
const e = q(n), t = q(""), o = q("");
|
|
1758
1767
|
return Pe(e, (a) => {
|
|
1759
1768
|
const r = a || ["", ""];
|
|
1760
1769
|
t.value = r[0], o.value = r[1];
|
|
1761
1770
|
}), [e, t, o];
|
|
1762
1771
|
}
|
|
1763
|
-
function
|
|
1772
|
+
function Zn(n) {
|
|
1764
1773
|
return Object.prototype.toString.call(n).slice(8, -1).toLowerCase();
|
|
1765
1774
|
}
|
|
1766
1775
|
function Te(n, e) {
|
|
@@ -1774,8 +1783,8 @@ function Te(n, e) {
|
|
|
1774
1783
|
let t = {};
|
|
1775
1784
|
return e.forEach((o) => t[o] = n[o]), t;
|
|
1776
1785
|
}
|
|
1777
|
-
function
|
|
1778
|
-
const { locale: t } =
|
|
1786
|
+
function Gn(n, e = []) {
|
|
1787
|
+
const { locale: t } = ve(), o = q(n());
|
|
1779
1788
|
return Pe(
|
|
1780
1789
|
[t, ...e],
|
|
1781
1790
|
() => {
|
|
@@ -1784,23 +1793,23 @@ function Zn(n, e = []) {
|
|
|
1784
1793
|
{ immediate: !0 }
|
|
1785
1794
|
), o;
|
|
1786
1795
|
}
|
|
1787
|
-
function
|
|
1796
|
+
function Wn(n, e = "zh_cn", t = "en_us") {
|
|
1788
1797
|
if (!n)
|
|
1789
1798
|
return "-";
|
|
1790
1799
|
const o = { en_us: t, zh_cn: e }, r = ct().global.locale.value;
|
|
1791
1800
|
return n[o[r]] || n[e] || "-";
|
|
1792
1801
|
}
|
|
1793
|
-
function
|
|
1802
|
+
function Jn(n, e) {
|
|
1794
1803
|
let t = Vt;
|
|
1795
1804
|
return typeof n == "string" && n.length > 0 && (t = Ue(n).mapState), ht(e, t);
|
|
1796
1805
|
}
|
|
1797
|
-
function
|
|
1806
|
+
function Qn(n, e) {
|
|
1798
1807
|
let t = Mt;
|
|
1799
1808
|
return typeof n == "string" && n.length > 0 && (t = Ue(n).mapGetters), ht(e, t);
|
|
1800
1809
|
}
|
|
1801
|
-
function
|
|
1810
|
+
function Xn(n, e) {
|
|
1802
1811
|
let t = At;
|
|
1803
|
-
return typeof n == "string" && n.length > 0 && (t = Ue(n).mapActions),
|
|
1812
|
+
return typeof n == "string" && n.length > 0 && (t = Ue(n).mapActions), mn(e, t);
|
|
1804
1813
|
}
|
|
1805
1814
|
function ht(n, e) {
|
|
1806
1815
|
const t = lt(), o = e(n), a = {};
|
|
@@ -1809,7 +1818,7 @@ function ht(n, e) {
|
|
|
1809
1818
|
a[r] = ne(l);
|
|
1810
1819
|
}), a;
|
|
1811
1820
|
}
|
|
1812
|
-
function
|
|
1821
|
+
function mn(n, e) {
|
|
1813
1822
|
const t = lt(), o = e(n), a = {};
|
|
1814
1823
|
return Object.keys(o).forEach((r) => {
|
|
1815
1824
|
a[r] = o[r].bind({ $store: t });
|
|
@@ -1818,7 +1827,7 @@ function gn(n, e) {
|
|
|
1818
1827
|
function Ee(n) {
|
|
1819
1828
|
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !Tt(n);
|
|
1820
1829
|
}
|
|
1821
|
-
function
|
|
1830
|
+
function eo() {
|
|
1822
1831
|
Ce.renderer.add("Enum", {
|
|
1823
1832
|
// 默认显示模板
|
|
1824
1833
|
renderTableDefault(n, e) {
|
|
@@ -1854,7 +1863,7 @@ function Xn() {
|
|
|
1854
1863
|
renderTableDefault(n, e) {
|
|
1855
1864
|
const {
|
|
1856
1865
|
locale: t
|
|
1857
|
-
} =
|
|
1866
|
+
} = ve();
|
|
1858
1867
|
let o = t.value == "zh_cn";
|
|
1859
1868
|
return P(wt, {
|
|
1860
1869
|
type: e.row[e.column.field] ? "success" : "danger"
|
|
@@ -1867,7 +1876,7 @@ function Xn() {
|
|
|
1867
1876
|
renderTableDefault(n, e) {
|
|
1868
1877
|
const {
|
|
1869
1878
|
locale: t
|
|
1870
|
-
} =
|
|
1879
|
+
} = ve();
|
|
1871
1880
|
let o = t.value == "zh_cn" ? e.column.field : n.fieldEn;
|
|
1872
1881
|
return e.row[o] || e.row[e.column.field];
|
|
1873
1882
|
}
|
|
@@ -1894,7 +1903,7 @@ function Xn() {
|
|
|
1894
1903
|
default: () => [e.row[t]]
|
|
1895
1904
|
});
|
|
1896
1905
|
const l = ((u = e.row[t]) == null ? void 0 : u.split(",")) || [];
|
|
1897
|
-
return l.map((d,
|
|
1906
|
+
return l.map((d, k) => P("span", null, [P(Ne, {
|
|
1898
1907
|
underline: "never",
|
|
1899
1908
|
type: "primary",
|
|
1900
1909
|
onclick: () => o.push({
|
|
@@ -1905,51 +1914,51 @@ function Xn() {
|
|
|
1905
1914
|
})
|
|
1906
1915
|
}, Ee(d) ? d : {
|
|
1907
1916
|
default: () => [d]
|
|
1908
|
-
}),
|
|
1917
|
+
}), k < l.length - 1 ? "," : ""]));
|
|
1909
1918
|
}
|
|
1910
1919
|
});
|
|
1911
1920
|
}
|
|
1912
1921
|
export {
|
|
1913
|
-
|
|
1922
|
+
en as CmpDictionary,
|
|
1914
1923
|
dt as CmpIcon,
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1924
|
+
Pn as ConfrimButton,
|
|
1925
|
+
Bn as DownExcelTemp,
|
|
1926
|
+
Un as ImportButton,
|
|
1927
|
+
$n as LayOutForm,
|
|
1928
|
+
qn as ListPage,
|
|
1929
|
+
Kn as OnePortalCasSDK,
|
|
1930
|
+
dn as SearchBar,
|
|
1922
1931
|
We as StatusMap,
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1932
|
+
Ln as _toRaw,
|
|
1933
|
+
Zn as _typeOf,
|
|
1934
|
+
En as arrToStatusMap,
|
|
1935
|
+
Tn as arrayToTree,
|
|
1936
|
+
On as checkFileSize,
|
|
1937
|
+
Yn as creatValidator,
|
|
1938
|
+
Mn as createImportFields,
|
|
1939
|
+
Vn as createListPageId,
|
|
1931
1940
|
Me as en,
|
|
1932
1941
|
Kt as exportExcel,
|
|
1933
1942
|
ct as getI18n,
|
|
1934
1943
|
Re as getI18nT,
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1944
|
+
fn as getListPageConfig,
|
|
1945
|
+
Wn as getLocaleValue,
|
|
1946
|
+
An as getValueBykey,
|
|
1947
|
+
In as importExcel,
|
|
1939
1948
|
qt as messages,
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1949
|
+
eo as registerVxeRenderers,
|
|
1950
|
+
jn as resetListPageConfig,
|
|
1951
|
+
Rn as setListPageConfig,
|
|
1943
1952
|
Bt as setupI18n,
|
|
1944
|
-
|
|
1953
|
+
Fn as sleep,
|
|
1945
1954
|
ut as stringToArray,
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1955
|
+
Dn as stripHtmlTags,
|
|
1956
|
+
zn as unicode2Str,
|
|
1957
|
+
Xn as useActions,
|
|
1958
|
+
Nn as useDatePicker,
|
|
1959
|
+
Qn as useGetters,
|
|
1960
|
+
Gn as useI18nReState,
|
|
1961
|
+
Hn as useRequest,
|
|
1962
|
+
Jn as useState,
|
|
1954
1963
|
Ve as zhCn
|
|
1955
1964
|
};
|